magefree / mage

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

Bugged interaction between Amped Raptor and Ephemerate #12489

Open HexOoze opened 2 months ago

HexOoze commented 2 months ago

When [[Amped Raptor]] flips into an [[Ephemerate]] and blinks itself, despite the blinked raptor not being cast from my hand, the latter part of its ETB still resolves. hoo

github-actions[bot] commented 2 months ago

Amped Raptor - (Gatherer) (Scryfall) (EDHREC)

{1}{R} Creature — Dinosaur 2/1 First strike When Amped Raptor enters the battlefield, you get {E}{E} (two energy counters). Then if you cast it from your hand, exile cards from the top of your library until you exile a nonland card. You may cast that card by paying an amount of {E} equal to its mana value rather than paying its mana cost.

Ephemerate - (Gatherer) (Scryfall) (EDHREC)

{W} Instant Exile target creature you control, then return it to the battlefield under its owner's control. Rebound (If you cast this spell from your hand, exile it as it resolves. At the beginning of your next upkeep, you may cast this card from exile without paying its mana cost.)

Susucre commented 2 months ago

Source of the bug is that CastFromHandSourcePermanentCondition and CastFromHandWatcher only work on spell UUID and have no regard for zcc whatsoever.