* Wheel of Sun and Moon - Fixed a bug that happened as Wheel of Sun and Moon tried to move the card of a spell cast to the library.

This commit is contained in:
LevelX2 2015-09-02 16:20:05 +02:00
parent 4a98e1ba07
commit 93825fff9c
2 changed files with 6 additions and 3 deletions

View file

@ -636,6 +636,10 @@ public class Spell extends StackObjImpl implements Card {
if (this.isCopiedSpell() && !zone.equals(Zone.STACK)) {
return true;
}
Card card = game.getCard(getSourceId());
if (card != null) {
return card.moveToZone(zone, sourceId, game, flag, appliedEffects);
}
throw new UnsupportedOperationException("Unsupported operation");
}