fix some cards and add some missing
it seems " add " inside name causes issue when parsed (cause crash in deck editor like arlinn kord), renaming it fixes it...
This commit is contained in:
@@ -873,6 +873,12 @@ void GameObserver::gameStateBasedEffects()
|
||||
{
|
||||
card->graveEffects = false;
|
||||
card->exileEffects = false;
|
||||
|
||||
if(card->isCreature())
|
||||
{
|
||||
if(card->life < 1 && !card->has(Constants::INDESTRUCTIBLE))
|
||||
card->destroy();//manor gargoyle... recheck
|
||||
}
|
||||
}
|
||||
|
||||
if(card->childrenCards.size())
|
||||
|
||||
@@ -510,6 +510,27 @@ int AbilityFactory::parseCastRestrictions(MTGCardInstance * card, Player * playe
|
||||
return 0;
|
||||
}
|
||||
|
||||
check = restriction[i].find("hasdefender");
|
||||
if(check != string::npos)
|
||||
{
|
||||
if(!card->has(Constants::DEFENDER))
|
||||
return 0;
|
||||
}
|
||||
|
||||
check = restriction[i].find("didattack");
|
||||
if(check != string::npos)
|
||||
{
|
||||
if(!card->didattacked)
|
||||
return 0;
|
||||
}
|
||||
|
||||
check = restriction[i].find("didntattack");
|
||||
if(check != string::npos)
|
||||
{
|
||||
if(card->didattacked)
|
||||
return 0;
|
||||
}
|
||||
|
||||
check = restriction[i].find("ownerscontrol");
|
||||
if(check != string::npos)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user