From 3595a7fa79a7aae97e47e812597e7bff1f706fe4 Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 29 Jan 2019 16:13:27 -0600 Subject: [PATCH] - Fixed #5560. Eventually I will get to the other similar effects. --- .../mage/abilities/effects/common/ExileTargetEffect.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Mage/src/main/java/mage/abilities/effects/common/ExileTargetEffect.java b/Mage/src/main/java/mage/abilities/effects/common/ExileTargetEffect.java index d7798ace281..0d1285a3f91 100644 --- a/Mage/src/main/java/mage/abilities/effects/common/ExileTargetEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/common/ExileTargetEffect.java @@ -1,4 +1,3 @@ - package mage.abilities.effects.common; import java.util.LinkedHashSet; @@ -93,7 +92,8 @@ public class ExileTargetEffect extends OneShotEffect { for (Target target : source.getTargets()) { for (UUID targetId : target.getTargets()) { Permanent permanent = game.getPermanent(targetId); - if (permanent != null) { + if (permanent != null + && permanent.isPhasedIn()) { Zone currentZone = game.getState().getZone(permanent.getId()); if (currentZone != Zone.EXILED && (onlyFromZone == null || onlyFromZone == Zone.BATTLEFIELD)) { toExile.add(permanent); @@ -117,7 +117,8 @@ public class ExileTargetEffect extends OneShotEffect { } else { for (UUID targetId : getTargetPointer().getTargets(game, source)) { Permanent permanent = game.getPermanent(targetId); - if (permanent != null) { + if (permanent != null + && permanent.isPhasedIn()) { Zone currentZone = game.getState().getZone(permanent.getId()); if (currentZone != Zone.EXILED && (onlyFromZone == null || onlyFromZone == Zone.BATTLEFIELD)) { toExile.add(permanent);