fixed an issue with @discarded...the trigger would only fire once becuase i was not passing the constructors variable for once to the object....

This commit is contained in:
omegablast2002@yahoo.com
2011-07-28 11:30:37 +00:00
parent ef5e011e23
commit 2e5222bf5d

View File

@@ -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
{