From bdb42b284851cd8811985a18c2a97d48d8c5df45 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Tue, 20 Jun 2017 00:11:06 -0400 Subject: [PATCH] Use WFL to implement backstab, to avoid needing delayed variable substitution --- data/core/macros/abilities.cfg | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/data/core/macros/abilities.cfg b/data/core/macros/abilities.cfg index c7cbd2d1f138..53afc5d6952a 100644 --- a/data/core/macros/abilities.cfg +++ b/data/core/macros/abilities.cfg @@ -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