Fix bug #11014:
Rewrite location filter not to use radius as that key seems to be hopelessly broken since always.
This commit is contained in:
parent
1b8d6316ee
commit
2cd537a2b1
1 changed files with 3 additions and 30 deletions
|
@ -3509,42 +3509,15 @@
|
|||
|
||||
[store_locations]
|
||||
variable=cloaked
|
||||
x=$x1
|
||||
y=$y1
|
||||
radius=1
|
||||
[not]
|
||||
terrain=Xu
|
||||
[/not]
|
||||
x=8-12
|
||||
y=19-23
|
||||
terrain=Uu,Uh
|
||||
[not]
|
||||
[filter]
|
||||
side=1
|
||||
[/filter]
|
||||
[/not]
|
||||
[/store_locations]
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=cloaked.length
|
||||
equals=0
|
||||
[/variable]
|
||||
[then]
|
||||
[store_locations]
|
||||
variable=fake_cave
|
||||
x=$x1
|
||||
y=$y1
|
||||
radius=1
|
||||
terrain=Xu
|
||||
[/store_locations]
|
||||
[terrain]
|
||||
x,y=$fake_cave[0].x,$fake_cave[0].y
|
||||
terrain=Uu
|
||||
[/terrain]
|
||||
{VARIABLE cloaked.x $fake_cave[0].x}
|
||||
{VARIABLE cloaked.y $fake_cave[0].y}
|
||||
{CLEAR_VARIABLE fake_cave}
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
[unit]
|
||||
type=Dark Assassin3
|
||||
description=Cloaked Figure
|
||||
|
|
Loading…
Add table
Reference in a new issue