Skip to content

Commit

Permalink
Fixed #12883.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwadsworth committed Sep 21, 2024
1 parent f7d702d commit f85a707
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Mage/src/main/java/mage/game/stack/SpellStack.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ public boolean counter(UUID objectId, Ability source, Game game, PutCards putCar
counteredObjectName = "Ability (" + stackObject.getStackAbility().getRule(targetSourceName) + ") of " + targetSourceName;
}
if (!game.replaceEvent(GameEvent.getEvent(GameEvent.EventType.COUNTER, objectId, source, stackObject.getControllerId()))) {
if (!(stackObject instanceof Spell)) { // spells are removed from stack by the card movement
// spells are removed from stack by the card movement
if (!(stackObject instanceof Spell)
|| stackObject.isCopy()) { // ensure that copies of stackobjects have their history recorded ie: Swan Song
this.remove(stackObject, game);
game.rememberLKI(Zone.STACK, stackObject);
}
Expand Down

0 comments on commit f85a707

Please sign in to comment.