magefree / mage

Magic Another Game Engine
http://xmage.today
MIT License
1.9k stars 773 forks source link

If Swan Song is used to counter a copied spell, no tokens are created #12883

Closed TommasoClancione closed 1 month ago

TommasoClancione commented 1 month ago

Likely due to CreateTokenControllerTargetEffect not correctly finding the controller of a copy

JayDi85 commented 1 month ago

[[Swan Song]]

github-actions[bot] commented 1 month ago

Swan Song - (Gatherer) (Scryfall) (EDHREC)

{U} Instant Counter target enchantment, instant, or sorcery spell. Its controller creates a 2/2 blue Bird creature token with flying.

jeffwadsworth commented 1 month ago

The LKI never accounts for the copy on the stack, thus no history can be retrieved. Spells are handled via card removal so you can see the problem.