From d860954c322e366838235d61a52110fb7d7ee937 Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Mon, 18 Jul 2016 07:32:02 +0800 Subject: [PATCH] fix crash with cdaactive and token cdaactive is forcedalive, if the token dies, forcedestroy it, token/s go to garbage --- projects/mtg/include/AllAbilities.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/mtg/include/AllAbilities.h b/projects/mtg/include/AllAbilities.h index 5681d7994..259df7f82 100644 --- a/projects/mtg/include/AllAbilities.h +++ b/projects/mtg/include/AllAbilities.h @@ -2633,6 +2633,11 @@ public: { if(!nonstatic) return; + if(source->isToken && !source->isInPlay(game) && cda) + { + this->forceDestroy = 1; + return; + } if(!cda || (cda && (((MTGCardInstance *) target)->isSettingBase < 1))) { if(((MTGCardInstance *) target)->isSwitchedPT)