Use WFL to implement backstab, to avoid needing delayed variable substitution

This commit is contained in:
Celtic Minstrel 2017-06-20 00:11:06 -04:00
parent a4b1c14d5e
commit bdb42b2848

View file

@ -352,13 +352,11 @@ Enemy units cannot see this unit while it is in deep water, except if they have
multiply=2
active_on=offense
[filter_opponent]
[filter_adjacent]
adjacent=$other_unit.facing
is_enemy=yes
[not]
status=petrified
[/not]
[/filter_adjacent]
formula="
enemy_of(self, flanker) and not flanker.petrified
where
flanker = unit_at(direction_from(loc, other.facing))
"
[/filter_opponent]
[/damage]
#enddef