Added/fixed primitives, updated the "missing_cards_by_sets" folder, added missing Conspicacy cards and tokens in CNS set, added Conspicacy cards management, added new ability "isconspiracy" to identify the Conspicacy cards into the Sideboard, added "Conspiracy" type in "Subtypes.h" enum definition, added a fix in "GameObserver::Affinity()" method in order to avoid a crash when the card is a Conspiracy in the commandzone.
This commit is contained in:
@@ -1179,7 +1179,7 @@ void GameObserver::Affinity()
|
||||
for (int cc = zone->nb_cards - 1; cc >= 0; cc--)
|
||||
{//start
|
||||
MTGCardInstance * card = zone->cards[cc];
|
||||
if (!card || card->hasType(Subtypes::TYPE_DUNGEON)) // Fix to avoid crash when the card is null or if is a Dungeon in the commandzone.
|
||||
if (!card || card->hasType(Subtypes::TYPE_DUNGEON) || card->hasType(Subtypes::TYPE_CONSPIRACY)) // Fix to avoid crash when the card is null or if is a Dungeon/Conspiracy in the commandzone.
|
||||
continue;
|
||||
|
||||
bool checkAuraP = false;
|
||||
|
||||
@@ -234,7 +234,8 @@ const char* Constants::MTGBasicAbilities[] = {
|
||||
"daybound", //Card has daybound (e.g. "Brutal Cathar")
|
||||
"nightbound", //Card has nightbound (e.g. "Moonrage Brute")
|
||||
"decayed", //Card has decayed.
|
||||
"hasstrive" //Kicker cost is a strive cost (e.g. "Aerial Formation")
|
||||
"hasstrive", //Kicker cost is a strive cost (e.g. "Aerial Formation")
|
||||
"isconspiracy" //The card is a conspiracy (e.g. "Double Stroke")
|
||||
};
|
||||
|
||||
map<string,int> Constants::MTGBasicAbilitiesMap;
|
||||
|
||||
@@ -25,6 +25,7 @@ Subtypes::Subtypes()
|
||||
find("Vanguard");
|
||||
find("Dungeon");
|
||||
find("Emblem");
|
||||
find("Conspiracy");
|
||||
}
|
||||
|
||||
int Subtypes::find(string value, bool forceAdd)
|
||||
|
||||
Reference in New Issue
Block a user