mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
* Fixed a bug that prevented that a spell was removed from stack in some situations.
This commit is contained in:
parent
561d254b22
commit
9dde5c2810
1 changed files with 3 additions and 0 deletions
|
@ -372,6 +372,9 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
|
||||||
stackObject = game.getStack().getSpell(((SplitCard) this).getRightHalfCard().getId());
|
stackObject = game.getStack().getSpell(((SplitCard) this).getRightHalfCard().getId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (stackObject == null) {
|
||||||
|
stackObject = game.getStack().getSpell(getId());
|
||||||
|
}
|
||||||
if (stackObject != null) {
|
if (stackObject != null) {
|
||||||
game.getStack().remove(stackObject);
|
game.getStack().remove(stackObject);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue