From f2736807f3151add05348c7d366c03d7815e2e70 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 16 Feb 2014 10:24:58 +0100 Subject: [PATCH] * Fixed a bug that occured if a copied spell was countered and should be moved to another zone as graveyard. --- .../common/CounterTargetWithReplacementEffect.java | 14 +++++++++----- Mage/src/mage/game/stack/Spell.java | 6 ++++++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/Mage/src/mage/abilities/effects/common/CounterTargetWithReplacementEffect.java b/Mage/src/mage/abilities/effects/common/CounterTargetWithReplacementEffect.java index 1bae00f7314..976263b9ffd 100644 --- a/Mage/src/mage/abilities/effects/common/CounterTargetWithReplacementEffect.java +++ b/Mage/src/mage/abilities/effects/common/CounterTargetWithReplacementEffect.java @@ -83,15 +83,19 @@ public class CounterTargetWithReplacementEffect extends OneShotEffect> implements StackObject, Card { @Override public boolean moveToZone(Zone zone, UUID sourceId, Game game, boolean flag, ArrayList appliedEffects) { + // 706.10a If a copy of a spell is in a zone other than the stack, it ceases to exist. + // If a copy of a card is in any zone other than the stack or the battlefield, it ceases to exist. + // These are state-based actions. See rule 704. + if (this.isCopiedSpell() && !zone.equals(Zone.STACK)) { + return true; + } throw new UnsupportedOperationException("Unsupported operation"); }