Fix units stuck in spider wall and filter

This commit is contained in:
Descacharrado 2022-04-04 11:30:17 +02:00 committed by Wedge009
parent 25e763f29b
commit eb123ed8bb

View file

@ -1687,8 +1687,8 @@
name=moveto
[filter]
side=1
x=10-18
y=1-6
x=10-18,11-17
y=1-6,7
[/filter]
[scroll_to]
@ -1723,6 +1723,40 @@
terrain=Xu
[/terrain]
# When cutting off the exit, test for units on the wall, if there are units on the wall, teleport them back
[if]
[have_unit]
side=1
x=9,7
[/have_unit]
[then]
[teleport]
[filter]
x,y=9,7
[/filter]
x,y=10,7
check_passability=yes
[/teleport]
[/then]
[/if]
[if]
[have_unit]
side=1
x=10,7
[/have_unit]
[then]
[teleport]
[filter]
x,y=10,7
[/filter]
x,y=9,7
check_passability=yes
[/teleport]
[/then]
[/if]
[redraw][/redraw]
[message]