Improved the Modal Double Faced cards for Zendikar set, added primitives that deals x damage divided on any target, added/fixed planeswalkers and improved kicker cost event handling.
This commit is contained in:
@@ -1326,6 +1326,10 @@ public:
|
||||
return 0;
|
||||
if(isSuspended && !source->suspended)
|
||||
return 0;
|
||||
if(e->forcetrigger){ //Added a force trigger for modal double faced card (eg. Zendikar Rising)
|
||||
triggeredTurn = game->turn;
|
||||
return 1;
|
||||
}
|
||||
if (!toTcZone->targetsZone(e->to)) return 0;
|
||||
if (!toTcCard->canTarget(e->card)) return 0;
|
||||
if (fromTcZone && !fromTcZone->targetsZone(e->from)) return 0;
|
||||
|
||||
@@ -41,7 +41,8 @@ struct WEventZoneChange : public WEvent {
|
||||
MTGCardInstance * card;
|
||||
MTGGameZone * from;
|
||||
MTGGameZone * to;
|
||||
WEventZoneChange(MTGCardInstance * card, MTGGameZone * from, MTGGameZone *to);
|
||||
bool forcetrigger; //Added a force trigger for modal double faced card (eg. Zendikar Rising)
|
||||
WEventZoneChange(MTGCardInstance * card, MTGGameZone * from, MTGGameZone *to, bool forcetrigger = false);
|
||||
virtual ~WEventZoneChange() {};
|
||||
virtual std::ostream& toString(std::ostream& out) const;
|
||||
virtual Targetable * getTarget(int target);
|
||||
|
||||
Reference in New Issue
Block a user