Attempt at fix of #11014:

Create an empty hex for dark assassin by carving out a wall if there
is no space around unit triggering moveto event. Can't test the
behavior as there is no save with offending case.
This commit is contained in:
Piotr Cychowski 2008-02-09 08:26:14 +00:00
parent ad245aba2a
commit dec4c8a541

View file

@ -3522,6 +3522,29 @@
[/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