UtBS S02: Don't move Nym if she's already adjacent to the bottle
(cherry picked from commit 8919c2e948
)
This commit is contained in:
parent
6b6eb8a35b
commit
6ad33af556
1 changed files with 19 additions and 1 deletions
|
@ -722,7 +722,25 @@
|
|||
message=_"Hey! Look there, they dropped something... A stone bottle, sealed. I wonder what’s inside..."
|
||||
[/message]
|
||||
|
||||
{MOVE_UNIT id=Nym $x1 $y1}
|
||||
# Move Nym adjacent to the bottle. During a die event, $unit is still blocking the hex, so
|
||||
# Nym probably ends up running to the hex north-west of $x1,$y1.
|
||||
#
|
||||
# Don't move her if she's already adjacent to it - if she landed the killing blow, moving
|
||||
# her now means that she doesn't get the XP. Also, the unit still has ZoC, and she'll take a
|
||||
# longer route to avoid it, which looks particularly obvious if Nym was adjacent the ogre.
|
||||
[if]
|
||||
[not]
|
||||
[have_unit]
|
||||
id=Nym
|
||||
[filter_adjacent]
|
||||
id=$unit.id
|
||||
[/filter_adjacent]
|
||||
[/have_unit]
|
||||
[/not]
|
||||
[then]
|
||||
{MOVE_UNIT id=Nym $x1 $y1}
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
[message]
|
||||
speaker=Zhul
|
||||
|
|
Loading…
Add table
Reference in a new issue