Second Resolution Time Action not firing
Posted: 10 Jul 2015, 14:46
I'm trying to fix TFM's werewolves. It's nothing wrong with the werewolf code, though. The problem is that there are two resolution time actions associated with a triggered ability for the beginning of the game, but only the first one ever fires.
Is this a known issue? Is there a fix for it?
Note, the only part of the code I didn't test changes for was the trigger. It's the same trigger used by all of the planeswalkers, and probably every card that uses Riiak's Custom Characteristics for making the manager token, as well as morph and manifest cards. All of those, however, use only a single RTA in that ability, so it may have simply never been noticed.
In the meantime, I'll continue testing, see if it may be a conflict with something.
EDIT: Still no definitive information on it, but apparently, deck composition has something to do with it. Two decks had different results in the same run. (Not in the same duel, though. I didn't test that.) One contained only a Mayor of Avabruck//Howlpack Alpha. The other contained that and a variety of other cards (morph and manifest), which may be overloading the system?
EDIT2: Okay, so, a deck can apparently have any number of a single card calling a replacement start of game trigger with no problem. But if there are multiple cards (in this case, Mayor of Avabruck//Howlpack Alpha and Acid-Spewer Dragon), then only the first RTA of each will fire. This only affects werewolves and other transform cards that use TFM's transform functions (Chalice of Life//Chalice of Death), because they're the only cards with a start of game trigger using multiple RTAs.
It's also possible any number of cards using two RTAs may work, but that's as of yet untested.
EDIT3: Okay, I still don't know why the problem was happening, but I've modified the code so it has the same result but uses only a single RTA. The first RTA creates the token and the second exiles it after storing its values. Now, in the only RTA, it sets a delayed trigger for when the token enters the battlefield, overrides that event, and stores the values in an RTA there in the delayed trigger. The only problem is that the pictures aren't changing...
- Original Code | Open
- Altered Code | Open
Is this a known issue? Is there a fix for it?
Note, the only part of the code I didn't test changes for was the trigger. It's the same trigger used by all of the planeswalkers, and probably every card that uses Riiak's Custom Characteristics for making the manager token, as well as morph and manifest cards. All of those, however, use only a single RTA in that ability, so it may have simply never been noticed.
In the meantime, I'll continue testing, see if it may be a conflict with something.
EDIT: Still no definitive information on it, but apparently, deck composition has something to do with it. Two decks had different results in the same run. (Not in the same duel, though. I didn't test that.) One contained only a Mayor of Avabruck//Howlpack Alpha. The other contained that and a variety of other cards (morph and manifest), which may be overloading the system?
EDIT2: Okay, so, a deck can apparently have any number of a single card calling a replacement start of game trigger with no problem. But if there are multiple cards (in this case, Mayor of Avabruck//Howlpack Alpha and Acid-Spewer Dragon), then only the first RTA of each will fire. This only affects werewolves and other transform cards that use TFM's transform functions (Chalice of Life//Chalice of Death), because they're the only cards with a start of game trigger using multiple RTAs.
It's also possible any number of cards using two RTAs may work, but that's as of yet untested.
EDIT3: Okay, I still don't know why the problem was happening, but I've modified the code so it has the same result but uses only a single RTA. The first RTA creates the token and the second exiles it after storing its values. Now, in the only RTA, it sets a delayed trigger for when the token enters the battlefield, overrides that event, and stores the values in an RTA there in the delayed trigger. The only problem is that the pictures aren't changing...