diff --git a/Mage/src/mage/abilities/DelayedTriggeredAbilities.java b/Mage/src/mage/abilities/DelayedTriggeredAbilities.java index c853621efb..1a56a44694 100644 --- a/Mage/src/mage/abilities/DelayedTriggeredAbilities.java +++ b/Mage/src/mage/abilities/DelayedTriggeredAbilities.java @@ -48,6 +48,19 @@ import mage.game.events.GameEvent; public DelayedTriggeredAbilities copy() { return new DelayedTriggeredAbilities(this); } + + public void checkTriggers(GameEvent event, Game game) { + if (this.size() > 0) { + Iterator it = this.iterator(); + while (it.hasNext()) { + DelayedTriggeredAbility ability = it.next(); + if (ability.checkTrigger(event, game)) { + ability.trigger(game, ability.controllerId); + it.remove(); + } + } + } + } } diff --git a/Mage/src/mage/game/GameState.java b/Mage/src/mage/game/GameState.java index 7acd0d84ab..3f5f7784b7 100644 --- a/Mage/src/mage/game/GameState.java +++ b/Mage/src/mage/game/GameState.java @@ -424,6 +424,7 @@ public class GameState implements Serializable, Copyable { public void handleEvent(GameEvent event, Game game) { watchers.watch(event, game); + delayed.checkTriggers(event, game); triggers.checkTriggers(event, game); }