fix for @sacrificed crash and not triggering to cost.

This commit is contained in:
omegablast2002@yahoo.com
2013-02-03 15:31:06 +00:00
parent 6928df6819
commit b85f2240a7

View File

@@ -712,9 +712,15 @@ public:
{
WEventCardSacrifice * e = dynamic_cast<WEventCardSacrifice *> (event);
if (!e) return 0;
MTGCardInstance * check = e->cardAfter->next;
MTGGameZone * oldZone = e->cardAfter->next->currentZone;
MTGCardInstance * check = e->cardAfter;
MTGGameZone * oldZone = e->cardAfter->currentZone;
check->currentZone = check->previousZone;
if (check->next && check->next->currentZone)
{
check = e->cardAfter->next;
oldZone = e->cardAfter->next->currentZone;
check->currentZone = e->cardAfter->next->previousZone;
}
if (!tc->canTarget(check,true))
{
check->currentZone = oldZone;