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