Added/fixed primitives from NEC set, added new keyword "modified" to target creatures that are enchanted or geared or with counters, updated missing card by set list.
This commit is contained in:
@@ -89,6 +89,11 @@ void CardDescriptor::unsecureSetHasBackSide(int k)
|
||||
hasBackSide = k;
|
||||
}
|
||||
|
||||
void CardDescriptor::unsecureSetModified(int k)
|
||||
{
|
||||
modified = k;
|
||||
}
|
||||
|
||||
void CardDescriptor::unsecureSetHasPartner(int k)
|
||||
{
|
||||
hasPartner = k;
|
||||
@@ -341,6 +346,11 @@ MTGCardInstance * CardDescriptor::match(MTGCardInstance * card)
|
||||
}
|
||||
}
|
||||
|
||||
if ((modified == -1 && ((card->enchanted) || (card->equipment > 0) || (card->counters->mCount))) || (modified == 1 && !((card->enchanted) || (card->equipment > 0) || (card->counters->mCount))))
|
||||
{
|
||||
match = NULL;
|
||||
}
|
||||
|
||||
if ((hasKickerCost == -1 && ((card->getManaCost()->getKicker() && !card->basicAbilities[Constants::HASNOKICKER]) || (!card->getManaCost()->getKicker() && card->basicAbilities[Constants::HASOTHERKICKER]))) || (hasKickerCost == 1 && !((card->getManaCost()->getKicker() && !card->basicAbilities[Constants::HASNOKICKER]) || (!card->getManaCost()->getKicker() && card->basicAbilities[Constants::HASOTHERKICKER]))))
|
||||
{
|
||||
match = NULL; //Some kicker costs are not a real kicker (e.g. Fuse cost).
|
||||
|
||||
Reference in New Issue
Block a user