tests: added test for LKI from copied spell (related to Swan Song fix from #12883)

This commit is contained in:
Oleg Agafonov 2024-09-25 09:55:19 +04:00
parent afde449a0f
commit 701bd68d97
3 changed files with 55 additions and 3 deletions

View file

@ -83,7 +83,7 @@ public class SpellStack extends ArrayDeque<StackObject> {
if (!game.replaceEvent(GameEvent.getEvent(GameEvent.EventType.COUNTER, objectId, source, stackObject.getControllerId()))) {
// 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
|| stackObject.isCopy()) { // !ensure that copies of stackobjects have their history recorded ie: Swan Song
this.remove(stackObject, game);
game.rememberLKI(Zone.STACK, stackObject);
}