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:
@@ -620,7 +620,7 @@ public:
|
|||||||
TargetChooser * tc;
|
TargetChooser * tc;
|
||||||
bool once,activeTrigger;
|
bool once,activeTrigger;
|
||||||
TrCardDiscarded(int id, MTGCardInstance * source, TargetChooser * tc,bool once = false) :
|
TrCardDiscarded(int id, MTGCardInstance * source, TargetChooser * tc,bool once = false) :
|
||||||
TriggeredAbility(id, source), tc(tc)
|
TriggeredAbility(id, source), tc(tc),once(once)
|
||||||
{
|
{
|
||||||
activeTrigger = true;
|
activeTrigger = true;
|
||||||
}
|
}
|
||||||
@@ -947,7 +947,6 @@ public:
|
|||||||
/*
|
/*
|
||||||
Generic classes
|
Generic classes
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//if/ifnot Cond then EFFECT
|
//if/ifnot Cond then EFFECT
|
||||||
class IfThenAbility: public MTGAbility
|
class IfThenAbility: public MTGAbility
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user