fix crash with cdaactive and token

cdaactive is forcedalive, if the token dies, forcedestroy it, token/s go
to garbage
This commit is contained in:
Anthony Calosa
2016-07-18 07:32:02 +08:00
parent 0b4b085095
commit d860954c32

View File

@@ -2633,6 +2633,11 @@ public:
{ {
if(!nonstatic) if(!nonstatic)
return; return;
if(source->isToken && !source->isInPlay(game) && cda)
{
this->forceDestroy = 1;
return;
}
if(!cda || (cda && (((MTGCardInstance *) target)->isSettingBase < 1))) if(!cda || (cda && (((MTGCardInstance *) target)->isSettingBase < 1)))
{ {
if(((MTGCardInstance *) target)->isSwitchedPT) if(((MTGCardInstance *) target)->isSwitchedPT)