From 27005fcba4b9594d9182bac2bfa37b3e7434342a Mon Sep 17 00:00:00 2001 From: Nathaniel Brandes Date: Wed, 22 Apr 2015 23:01:33 -0700 Subject: [PATCH] Fix counterspells not working when Rest in Peace is in play. --- Mage/src/mage/cards/CardImpl.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Mage/src/mage/cards/CardImpl.java b/Mage/src/mage/cards/CardImpl.java index d8a295896f..28e73490eb 100644 --- a/Mage/src/mage/cards/CardImpl.java +++ b/Mage/src/mage/cards/CardImpl.java @@ -492,6 +492,11 @@ public abstract class CardImpl extends MageObjectImpl implements Card { game.getExile().removeCard(this, game); break; case STACK: + StackObject stackObject = game.getStack().getSpell(getId()); + if (stackObject != null) { + game.getStack().remove(stackObject); + } + break; case PICK: // nothing to do break;