mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-26 04:40:50 -08:00
skip duplicate nonpromos (#4097)
* consider cards with frameEffects promos * skip duplicates entirely all cards that are not "promo" or something like it will only retain the first copy instead of parsing all of them and keeping the last
This commit is contained in:
@@ -278,6 +278,9 @@ int OracleImporter::importCardsFromSet(CardSetPtr currentSet, const QList<QVaria
|
||||
|
||||
if (skipSpecialCards) {
|
||||
// skip promo cards if it's not the only print
|
||||
if (allNameProps.contains(name)) {
|
||||
continue;
|
||||
}
|
||||
if (getStringPropertyFromMap(card, "isPromo") == "true") {
|
||||
specialPromoCards.insert(name, cardVar);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user