From 21fe584e635a778d1b5cedcaa75503782037b9e4 Mon Sep 17 00:00:00 2001 From: BetaSteward Date: Mon, 6 Dec 2010 03:03:50 +0000 Subject: [PATCH] fixed issue 50 --- Mage/src/mage/abilities/AbilitiesImpl.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Mage/src/mage/abilities/AbilitiesImpl.java b/Mage/src/mage/abilities/AbilitiesImpl.java index a3d3231373..661a3b77b9 100644 --- a/Mage/src/mage/abilities/AbilitiesImpl.java +++ b/Mage/src/mage/abilities/AbilitiesImpl.java @@ -32,6 +32,7 @@ import java.util.ArrayList; import java.util.List; import java.util.UUID; import mage.Constants.Zone; +import mage.abilities.common.ZoneChangeTriggeredAbility; import mage.abilities.keyword.KickerAbility; import mage.abilities.keyword.ProtectionAbility; import mage.abilities.mana.ManaAbility; @@ -130,6 +131,12 @@ public class AbilitiesImpl extends ArrayList implements Ab if (ability instanceof TriggeredAbility && ability.getZone().match(zone)) { zonedAbilities.add((TriggeredAbility)ability); } + else if (ability instanceof ZoneChangeTriggeredAbility) { + ZoneChangeTriggeredAbility zcAbility = (ZoneChangeTriggeredAbility)ability; + if (zcAbility.getToZone() != null && zcAbility.getToZone().match(zone)) { + zonedAbilities.add((ZoneChangeTriggeredAbility)ability); + } + } } return zonedAbilities; }