force event for token sacrifice
This commit is contained in:
@@ -1370,6 +1370,8 @@ public:
|
||||
{
|
||||
WEventCardSacrifice * e = dynamic_cast<WEventCardSacrifice *> (event);
|
||||
if (!e) return 0;
|
||||
if (e->istoken)
|
||||
return 1;
|
||||
MTGCardInstance * check = e->cardAfter;
|
||||
MTGGameZone * oldZone = e->cardAfter->currentZone;
|
||||
check->currentZone = check->previousZone;
|
||||
|
||||
@@ -184,7 +184,8 @@ struct WEventCardBlocked : public WEventCardUpdate {
|
||||
//event when card is sacrificed.
|
||||
struct WEventCardSacrifice : public WEventCardUpdate {
|
||||
MTGCardInstance * cardAfter;
|
||||
WEventCardSacrifice(MTGCardInstance * card,MTGCardInstance * afterCard);
|
||||
bool istoken;
|
||||
WEventCardSacrifice(MTGCardInstance * card,MTGCardInstance * afterCard, bool token = false);
|
||||
virtual Targetable * getTarget(int target);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user