Page 1 of 1

Trying to fix leaves play triggers for transformed cards

PostPosted: 15 Jan 2012, 04:05
by ArsenalNut
I found what is causing the problem when a Ghastly Hunting is disenchanted. The leaves play zcTrigger associated with it has a restriction using its transformed name, but when leaving play, the card has the name of its original state. Thus, the restriction fails and the leaves play command is never executed.

Since transformed and cloned cards always leave as their original name, I propose to fix this by making the restriction reference the original name of the card when the zcTrigger gets created. Is there some rule situation where this not correct?

Re: Trying to fix leaves play triggers for transformed cards

PostPosted: 15 Jan 2012, 07:22
by Hellfish
Is this really still the case,though?I recently committed a fix for Unholy Fiend+Village Cannibals that makes sure the state that left the battlefield is the one that is passed to triggers.

EDIT: Wait, crap, you *did* mean *zc*triggers.. :oops: Not sure what's going on there, as I havn't touched them in a while. There's not much (anything?) they can do that a static Trigger with an OverridingAbility can't.

Re: Trying to fix leaves play triggers for transformed cards

PostPosted: 18 Jan 2012, 06:53
by ArsenalNut
I ended up adding a check in the constructor for AbilityTriggered to check for alternate state then use the "original" name instead.