From 2e5222bf5dad8327ebda069172f1f3397a404c5b Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Thu, 28 Jul 2011 11:30:37 +0000 Subject: [PATCH] fixed an issue with @discarded...the trigger would only fire once becuase i was not passing the constructors variable for once to the object.... --- projects/mtg/include/AllAbilities.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/mtg/include/AllAbilities.h b/projects/mtg/include/AllAbilities.h index 6f8508916..eb0badd18 100644 --- a/projects/mtg/include/AllAbilities.h +++ b/projects/mtg/include/AllAbilities.h @@ -620,7 +620,7 @@ public: TargetChooser * tc; bool once,activeTrigger; TrCardDiscarded(int id, MTGCardInstance * source, TargetChooser * tc,bool once = false) : - TriggeredAbility(id, source), tc(tc) + TriggeredAbility(id, source), tc(tc),once(once) { activeTrigger = true; } @@ -947,7 +947,6 @@ public: /* Generic classes */ - //if/ifnot Cond then EFFECT class IfThenAbility: public MTGAbility {