Add restriction for exert
hasexerted and notexerted
This commit is contained in:
@@ -576,6 +576,20 @@ int AbilityFactory::parseCastRestrictions(MTGCardInstance * card, Player * playe
|
||||
return 0;
|
||||
}
|
||||
|
||||
check = restriction[i].find("hasexerted");
|
||||
if(check != string::npos)
|
||||
{
|
||||
if(!card->exerted)
|
||||
return 0;
|
||||
}
|
||||
|
||||
check = restriction[i].find("notexerted");
|
||||
if(check != string::npos)
|
||||
{
|
||||
if(card->exerted)
|
||||
return 0;
|
||||
}
|
||||
|
||||
check = restriction[i].find("discardbyopponent");
|
||||
if(check != string::npos)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user