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
+9
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)
+1 -1
View File
@@ -890,7 +890,7 @@ bool MTGCardInstance::isTargetter()
int MTGCardInstance::canBlock()
{
if (tapped)
if (tapped && !has(Constants::CANBLOCKTAPPED))
return 0;
if (basicAbilities[(int)Constants::CANTBLOCK])
return 0;
+2 -1
View File
@@ -171,7 +171,8 @@ const char* Constants::MTGBasicAbilities[] = {
"legendruleremove",
"canttransform",
"asflash",
"conduited"
"conduited",
"canblocktapped"
};
map<string,int> Constants::MTGBasicAbilitiesMap;