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:
omegablast2002@yahoo.com
2010-10-22 14:53:39 +00:00
parent e6bc59fa97
commit f3449592de
2 changed files with 13 additions and 0 deletions
+9
View File
@@ -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;
}