added nolegend ability. this doesn't remove legend rule, it only makes a card thas has nolegend ability excluded from check.

This commit is contained in:
anthonycalosa@gmail.com
2013-01-07 06:46:56 +00:00
parent e2be750780
commit 510a8c4222
3 changed files with 8 additions and 3 deletions
+2 -1
View File
@@ -220,7 +220,8 @@ class Constants
POISONDAMAGER = 99,
soulbond = 100,
LURE = 101,
NB_BASIC_ABILITIES = 102,
NOLEGEND = 102,
NB_BASIC_ABILITIES = 103,
RARITY_S = 'S', //Special Rarity
+2 -1
View File
@@ -130,7 +130,8 @@ const char* Constants::MTGBasicAbilities[] = {
"onlymanaability",
"poisondamager",//deals damage to players as poison counters.
"soulbond",
"lure"
"lure",
"nolegend"
};
map<string,int> Constants::MTGBasicAbilitiesMap;
+4 -1
View File
@@ -2335,7 +2335,10 @@ int MTGLegendRule::canBeInList(MTGCardInstance * card)
return 0;
if (card->hasType(Subtypes::TYPE_LEGENDARY) && game->isInPlay(card))
{
return 1;
if(card->has(Constants::NOLEGEND))
return 0;
else
return 1;
}
return 0;
}