* Fixed a bug that prevented that a spell was removed from stack in some situations.

This commit is contained in:
LevelX2 2015-09-06 22:40:55 +02:00
parent 561d254b22
commit 9dde5c2810

View file

@ -372,6 +372,9 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
stackObject = game.getStack().getSpell(((SplitCard) this).getRightHalfCard().getId());
}
}
if (stackObject == null) {
stackObject = game.getStack().getSpell(getId());
}
if (stackObject != null) {
game.getStack().remove(stackObject);
}