Add restriction for exert

hasexerted and notexerted
This commit is contained in:
Anthony Calosa
2017-08-05 18:15:44 +08:00
parent b5c8656ac9
commit 77d87902d9

View File

@@ -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)
{