diff --git a/Mage.Sets/src/mage/cards/f/FireLordAzula.java b/Mage.Sets/src/mage/cards/f/FireLordAzula.java index 4505fa07faa..fe4c32e9447 100644 --- a/Mage.Sets/src/mage/cards/f/FireLordAzula.java +++ b/Mage.Sets/src/mage/cards/f/FireLordAzula.java @@ -11,6 +11,8 @@ import mage.constants.SetTargetPointer; import mage.constants.SubType; import mage.constants.SuperType; import mage.filter.StaticFilters; +import mage.game.Game; +import mage.game.events.GameEvent; import java.util.UUID; @@ -32,10 +34,7 @@ public final class FireLordAzula extends CardImpl { this.addAbility(new FirebendingAbility(2)); // Whenever you cast a spell while Fire Lord Azula is attacking, copy that spell. You may choose new targets for the copy. - this.addAbility(new SpellCastControllerTriggeredAbility( - new CopyStackObjectEffect("that spell"), - StaticFilters.FILTER_SPELL_A, false, SetTargetPointer.SPELL - )); + this.addAbility(new FireLordAzulaAbility()); } private FireLordAzula(final FireLordAzula card) { @@ -47,3 +46,16 @@ public final class FireLordAzula extends CardImpl { return new FireLordAzula(this); } } + +class FireLordAzulaAbility extends SpellCastControllerTriggeredAbility { + + public FireLordAzulaAbility() { + super(new CopyStackObjectEffect("that spell"), StaticFilters.FILTER_SPELL_A, false, SetTargetPointer.SPELL); + setTriggerPhrase("Whenever you cast a spell while Fire Lord Azula is attacking, "); + } + + @Override + public boolean checkTrigger(GameEvent event, Game game) { + return game.getCombat().getAttackers().contains(getSourceId()) && super.checkTrigger(event, game); + } +} \ No newline at end of file