- Fixed #5560. Eventually I will get to the other similar effects.

This commit is contained in:
Jeff 2019-01-29 16:13:27 -06:00
parent a5bd2659fd
commit 3595a7fa79

View file

@ -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);