Added new features and triggers to game about tokens and counters, fixed and added new primitives.
This commit is contained in:
@@ -63,7 +63,8 @@ struct WEventCounters : public WEvent {
|
||||
int toughness;
|
||||
bool added;
|
||||
bool removed;
|
||||
WEventCounters(Counters *counter,string name,int power, int toughness,bool added = false, bool removed = false);
|
||||
MTGCardInstance * source;
|
||||
WEventCounters(Counters *counter,string name,int power, int toughness,bool added = false, bool removed = false, MTGCardInstance * source = NULL);
|
||||
using WEvent::getTarget;
|
||||
virtual Targetable * getTarget();
|
||||
};
|
||||
@@ -357,6 +358,12 @@ struct WEventCardMutated : public WEventCardUpdate {
|
||||
virtual Targetable * getTarget(int target);
|
||||
};
|
||||
|
||||
//token creation event
|
||||
struct WEventTokenCreated : public WEventCardUpdate {
|
||||
WEventTokenCreated(MTGCardInstance * card);
|
||||
virtual Targetable * getTarget(int target);
|
||||
};
|
||||
|
||||
std::ostream& operator<<(std::ostream&, const WEvent&);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user