add some cards from kamigawa
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -171,7 +171,8 @@ const char* Constants::MTGBasicAbilities[] = {
|
||||
"legendruleremove",
|
||||
"canttransform",
|
||||
"asflash",
|
||||
"conduited"
|
||||
"conduited",
|
||||
"canblocktapped"
|
||||
};
|
||||
|
||||
map<string,int> Constants::MTGBasicAbilitiesMap;
|
||||
|
||||
Reference in New Issue
Block a user