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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user