add some cards from kamigawa

This commit is contained in:
Anthony Calosa
2016-08-23 06:49:57 +08:00
parent cd2f4480f4
commit 42e240c9ab
5 changed files with 92 additions and 30 deletions

View File

@@ -352,6 +352,15 @@ int AbilityFactory::parseCastRestrictions(MTGCardInstance * card, Player * playe
if(!isMorbid)
return 0;
}
check = restriction[i].find("morecardsthanopponent");
if (check != string::npos)
{
Player * checkCurrent = card->controller();
if(checkCurrent->game->hand->nb_cards <= checkCurrent->opponent()->game->hand->nb_cards)
return 0;
}
check = restriction[i].find("delirium");
if (check != string::npos)