Fix units stuck in spider wall and filter
This commit is contained in:
parent
25e763f29b
commit
eb123ed8bb
1 changed files with 36 additions and 2 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue