* Mindbreak Trap - Fixed a problem with exiling copied (e.g. by Storm)spells.

This commit is contained in:
LevelX2 2017-01-15 16:04:45 +01:00
parent 2974771cb5
commit b7c0c1e8b4
2 changed files with 9 additions and 10 deletions

View file

@ -137,8 +137,8 @@ public class ExileTargetEffect extends OneShotEffect {
}
} else {
StackObject stackObject = game.getStack().getStackObject(targetId);
if (stackObject instanceof Spell && ((Spell) stackObject).getCard() != null) {
toExile.add(((Spell) stackObject).getCard());
if (stackObject instanceof Spell) {
toExile.add((Spell) stackObject);
}
}
}