the fix for the sacrifice trigger was a ton easier than expected.

treat it like a spell. 
the card after contains all the info we need to determine if it should trigger.
This commit is contained in:
zethfoxster
2016-07-28 18:48:47 -04:00
parent a7e87aaae5
commit 52df1ad963

View File

@@ -1370,12 +1370,11 @@ public:
{ {
WEventCardSacrifice * e = dynamic_cast<WEventCardSacrifice *> (event); WEventCardSacrifice * e = dynamic_cast<WEventCardSacrifice *> (event);
if (!e) return 0; if (!e) return 0;
if (e->istoken)
tc->setAllZones();
MTGCardInstance * check = e->cardAfter; MTGCardInstance * check = e->cardAfter;
MTGGameZone * oldZone = e->cardAfter->currentZone; MTGGameZone * oldZone = e->cardAfter->currentZone;
MTGGameZone * currZone = check->currentZone;
check->currentZone = check->previousZone; check->currentZone = check->previousZone;
if (check->next && check->next->currentZone) if (check->next && (check->next->currentZone|| check->isToken))
{ {
check = e->cardAfter->next; check = e->cardAfter->next;
oldZone = e->cardAfter->next->currentZone; oldZone = e->cardAfter->next->currentZone;