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:
@@ -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