Fixed  Eventually I will get to the other similar effects.
-
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);
