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:
ebbit1q
2020-09-22 22:09:59 +02:00
committed by GitHub
parent 02935be14f
commit 14fcb2e5d7

View File

@@ -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;