Skip to content

Commit

Permalink
Use WFL to implement backstab, to avoid needing delayed variable subs…
Browse files Browse the repository at this point in the history
…titution
  • Loading branch information
CelticMinstrel committed Jun 25, 2017
1 parent a4b1c14 commit bdb42b2
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions data/core/macros/abilities.cfg
Expand Up @@ -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
Expand Down

0 comments on commit bdb42b2

Please sign in to comment.