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, POISONDAMAGER = 99,
soulbond = 100, soulbond = 100,
LURE = 101, LURE = 101,
NB_BASIC_ABILITIES = 102, NOLEGEND = 102,
NB_BASIC_ABILITIES = 103,
RARITY_S = 'S', //Special Rarity RARITY_S = 'S', //Special Rarity
+2 -1
View File
@@ -130,7 +130,8 @@ const char* Constants::MTGBasicAbilities[] = {
"onlymanaability", "onlymanaability",
"poisondamager",//deals damage to players as poison counters. "poisondamager",//deals damage to players as poison counters.
"soulbond", "soulbond",
"lure" "lure",
"nolegend"
}; };
map<string,int> Constants::MTGBasicAbilitiesMap; map<string,int> Constants::MTGBasicAbilitiesMap;
+3
View File
@@ -2335,6 +2335,9 @@ int MTGLegendRule::canBeInList(MTGCardInstance * card)
return 0; return 0;
if (card->hasType(Subtypes::TYPE_LEGENDARY) && game->isInPlay(card)) if (card->hasType(Subtypes::TYPE_LEGENDARY) && game->isInPlay(card))
{ {
if(card->has(Constants::NOLEGEND))
return 0;
else
return 1; return 1;
} }
return 0; return 0;