fix for @sacrificed crash and not triggering to cost.
This commit is contained in:
@@ -712,9 +712,15 @@ public:
|
|||||||
{
|
{
|
||||||
WEventCardSacrifice * e = dynamic_cast<WEventCardSacrifice *> (event);
|
WEventCardSacrifice * e = dynamic_cast<WEventCardSacrifice *> (event);
|
||||||
if (!e) return 0;
|
if (!e) return 0;
|
||||||
MTGCardInstance * check = e->cardAfter->next;
|
MTGCardInstance * check = e->cardAfter;
|
||||||
MTGGameZone * oldZone = e->cardAfter->next->currentZone;
|
MTGGameZone * oldZone = e->cardAfter->currentZone;
|
||||||
check->currentZone = check->previousZone;
|
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))
|
if (!tc->canTarget(check,true))
|
||||||
{
|
{
|
||||||
check->currentZone = oldZone;
|
check->currentZone = oldZone;
|
||||||
|
|||||||
Reference in New Issue
Block a user