Fixed some primitives, added some new primitives from MAT set, added new triggers to handle better counters, improved a lot of abilities for replacing atoi with WParserInt class, fixed bug on change types on xone changing, fixed bug on manacost during mutate and flip actions, fixed other minor bugs.
This commit is contained in:
@@ -43,11 +43,16 @@ WEventCardUpdate::WEventCardUpdate(MTGCardInstance * card) :
|
||||
}
|
||||
;
|
||||
|
||||
WEventCounters::WEventCounters(Counters *counter,string name,int power,int toughness,bool added,bool removed, MTGCardInstance* source) :
|
||||
WEventCounters::WEventCounters(Counters *counter, string name, int power, int toughness, bool added, bool removed, MTGCardInstance* source) :
|
||||
WEvent(),counter(counter),name(name),power(power),toughness(toughness),added(added),removed(removed),source(source)
|
||||
{
|
||||
}
|
||||
|
||||
WEventTotalCounters::WEventTotalCounters(Counters *counter, string name, int power, int toughness, bool added, bool removed, int totalamount, MTGCardInstance* source) :
|
||||
WEvent(),counter(counter),name(name),power(power),toughness(toughness),added(added),removed(removed),totalamount(totalamount),source(source)
|
||||
{
|
||||
}
|
||||
|
||||
WEventPhaseChange::WEventPhaseChange(Phase * from, Phase * to) :
|
||||
WEvent(CHANGE_PHASE), from(from), to(to)
|
||||
{
|
||||
@@ -409,6 +414,11 @@ Targetable * WEventCounters::getTarget(int target)
|
||||
return targetCard;
|
||||
}
|
||||
|
||||
Targetable * WEventTotalCounters::getTarget(int target)
|
||||
{
|
||||
return targetCard;
|
||||
}
|
||||
|
||||
Targetable * WEventVampire::getTarget(int target)
|
||||
{
|
||||
switch (target)
|
||||
|
||||
Reference in New Issue
Block a user