fix for cards with restrictions

This commit is contained in:
Anthony Calosa
2017-01-22 00:14:46 +08:00
parent 37b3f28065
commit 6fe57be115
6 changed files with 17 additions and 5 deletions
+8
View File
@@ -540,6 +540,14 @@ int AbilityFactory::parseCastRestrictions(MTGCardInstance * card, Player * playe
if(card->controller()->raidcount < 1)
return 0;
}
check = restriction[i].find("opponentdamagedbycombat");
if(check != string::npos)
{
if(card->controller()->dealsdamagebycombat < 1)
return 0;
}
check = restriction[i].find("outnumbered");//opponent controls atleast 4 or more creatures than you
if(check != string::npos)