Added / fixed primitives from ONE set, fixed Treasure name in all sets and primitives, updated missing cards by sets list, improved token creator ability by trying to retrieve the token id from the same set of source card (e.g. Urza's Saga), improved toxic ability adding a new target chooser "hastoxic" and adding a new keyword "toxicity" to retrieve the toxic amount of card.
This commit is contained in:
@@ -32,8 +32,9 @@ CardDescriptor::CardDescriptor()
|
||||
hasBackSide = 0;
|
||||
hasPartner = 0;
|
||||
modified = 0;
|
||||
toxicity = 0;
|
||||
hasXCost = 0;
|
||||
compareName ="";
|
||||
compareName = "";
|
||||
nameComparisonMode = COMPARISON_NONE;
|
||||
colorComparisonMode = COMPARISON_NONE;
|
||||
CDopponentDamaged = 0;
|
||||
@@ -95,6 +96,11 @@ void CardDescriptor::unsecureSetModified(int k)
|
||||
modified = k;
|
||||
}
|
||||
|
||||
void CardDescriptor::unsecureSetHasToxic(int k)
|
||||
{
|
||||
toxicity = k;
|
||||
}
|
||||
|
||||
void CardDescriptor::unsecureSetHasPartner(int k)
|
||||
{
|
||||
hasPartner = k;
|
||||
@@ -367,6 +373,11 @@ MTGCardInstance * CardDescriptor::match(MTGCardInstance * card)
|
||||
match = NULL;
|
||||
}
|
||||
|
||||
if ((toxicity == -1 && card->getToxicity() > 0) || (toxicity == 1 && card->getToxicity() == 0))
|
||||
{
|
||||
match = NULL;
|
||||
}
|
||||
|
||||
if ((hasPartner == -1 && card->partner != "") || (hasPartner == 1 && card->partner == ""))
|
||||
{
|
||||
match = NULL;
|
||||
|
||||
Reference in New Issue
Block a user