From 2259a534b22be62544535ae1f00aab05db664c2d Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Tue, 4 Jun 2013 00:55:50 +0200 Subject: [PATCH] Fixed a bug of ZoneChangeAllTriggeredAbility trying to get permanent from battelfield if permanent left battlefield. --- .../abilities/common/ZoneChangeAllTriggeredAbility.java | 7 ++++++- Mage/src/mage/abilities/keyword/ProtectionAbility.java | 9 ++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Mage/src/mage/abilities/common/ZoneChangeAllTriggeredAbility.java b/Mage/src/mage/abilities/common/ZoneChangeAllTriggeredAbility.java index 3383068261..f50ca1d935 100644 --- a/Mage/src/mage/abilities/common/ZoneChangeAllTriggeredAbility.java +++ b/Mage/src/mage/abilities/common/ZoneChangeAllTriggeredAbility.java @@ -75,7 +75,12 @@ public class ZoneChangeAllTriggeredAbility { public boolean canTarget(MageObject source, Game game) { if (filter instanceof FilterPermanent) { - if (source instanceof Permanent) + if (source instanceof Permanent) { return !filter.match(source, game); + } return true; } if (filter instanceof FilterSpell) { - if (source instanceof Spell) + if (source instanceof Spell) { return !filter.match(source, game); + } return true; } if (filter instanceof FilterCard) { - if (source instanceof Card) + if (source instanceof Card) { return !filter.match(source, game); + } return true; } if (filter instanceof FilterObject) {