Re: Trigger discussion (was WheneverKeyword reference)
No sweat - I'm still here, and still appreciate it! Thanks!Hellfish wrote:Added another example to the wiki page as requested by Zirbert, what, four pages ago?
-Zirbert
High Quality Resources for Collectible Card Games and Home of the CCGHQ Team
https://www.slightlymagic.net/forum/
https://www.slightlymagic.net/forum/viewtopic.php?f=52&t=3819
No sweat - I'm still here, and still appreciate it! Thanks!Hellfish wrote:Added another example to the wiki page as requested by Zirbert, what, four pages ago?
Card host = AllZoneUtil.getCardState(regtrig.getHostCard());
That's fine. I'll have to play around with it and see if I can get a better way to repro.Hellfish wrote:That is odd, I can't reproduce it at all. I tried with a variety of combinations of allies (several or solitary) and whatever ally was Control Magic -d does not trigger on me playing another ally. Sorry, but I officially have no clue. :/
AllZone.TriggerHandler.removeRegisteredTrigger(t);
card.removeTrigger(t);
Ideally, I would just call c.removeTrigger(t) and that would handle the unregistering part.Hellfish wrote:EDIT: Misread, you were using removeRegisteredTrigger..Hmm..
Trigger parsedTrigger = TriggerHandler.parseTrigger(actualTrigger, c);
Trigger addedTrigger = c.addTrigger(parsedTrigger)
if(regtrig instanceof Trigger_TapsForMana)
{
Ability_Mana abMana = (Ability_Mana)runParams.get("Ability_Mana");
//Set undoability here
}