minor corrections

This commit is contained in:
Anthony Calosa
2017-05-08 11:41:00 +08:00
parent 9f4b8d65c8
commit 44304ee5b3
4 changed files with 51 additions and 23 deletions

View File

@@ -730,6 +730,16 @@ int AbilityFactory::parseCastRestrictions(MTGCardInstance * card, Player * playe
{
restriction.push_back("type(vampire|mybattlefield)~morethan~1");
}
check = restriction[i].find("control less artifacts");
if(check != string::npos)
{
restriction.push_back("type(artifact|mybattlefield)~lessthan~type(artifact|opponentbattlefield)");
}
check = restriction[i].find("control less enchantments");
if(check != string::npos)
{
restriction.push_back("type(enchantment|mybattlefield)~lessthan~type(enchantment|opponentbattlefield)");
}
check = restriction[i].find("control less creatures");
if(check != string::npos)
{