Fixed a bug where "Maxglee" cheat was adding token workaround cards to the collection. also, removed subtype search "nothing" from the Wfilters...before anyone jumps on me, there are over 18000s MTG cards, NOT a single ones of those cards have subtype="nothing" or any variations of "nothing"
This commit is contained in:
@@ -691,9 +691,17 @@ int MTGDeck::complete() {
|
||||
or collection has at least 4 of every implemented card. Does not
|
||||
change the number of cards of which already 4 or more are present. */
|
||||
int id, n;
|
||||
bool StypeIsNothing;
|
||||
size_t databaseSize = database->ids.size();
|
||||
for (size_t it = 0 ; it < databaseSize ; it++) {
|
||||
id = database->ids[it];
|
||||
StypeIsNothing = false;
|
||||
if(database->getCardById(id)->data->hasType("nothing"))
|
||||
{
|
||||
StypeIsNothing = true;
|
||||
}
|
||||
if(!StypeIsNothing == true)
|
||||
{
|
||||
if(cards.find(id) == cards.end()){
|
||||
cards[id] = 4;
|
||||
total_cards += 4;
|
||||
@@ -705,6 +713,7 @@ int MTGDeck::complete() {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user