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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user