magefree / mage

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

Split Cards Fail to be placed into Exile by Plot triggers (e.g., Lilah, Undefeated Slickshot) #12901

Open SargeRyong opened 1 week ago

SargeRyong commented 1 week ago

Came across an incorrect interaction between split cards and triggered abilities that cause those cards to become plotted.

I specifically observed this with Lilah, Undefeated Slickshot combined with either Invert // Invent or Expansion // Explosion, but it would probably also happen with something like Fblthp, Lost on the Range.

When casting either half of one of the split cards, Lilah correctly sees that the player has cast a multicolor spell and the trigger to put the card into exile as it resolves goes on the stack. However, upon resolution the card does not go to exile (and therefore does not become plotted) and instead is put into the graveyard as though the ability had not triggered.

I suspect XMage may be trying and failing to exile only one of the halves of the card, instead of correctly exiling the entire split card.

Per the actual game rules, the split card should be exiled and either half allowed to be cast from exile as a plotted card (regardless of which half was initially cast).

jeffwadsworth commented 1 week ago

[[Lilah, Undefeated Slickshot]]

github-actions[bot] commented 1 week ago

Lilah, Undefeated Slickshot - (Gatherer) (Scryfall) (EDHREC)

{1}{U}{R} Legendary Creature — Human Rogue 3/3 Prowess (Whenever you cast a noncreature spell, this creature gets +1/+1 until end of turn.) Whenever you cast a multicolored instant or sorcery spell from your hand, exile that spell instead of putting it into your graveyard as it resolves. If you do, it becomes plotted. (You may cast it as a sorcery on a later turn without paying its mana cost.)