From 91913879e9dbbd0aca4f927a8b34b13e2c08337c Mon Sep 17 00:00:00 2001 From: leriomaggio Date: Tue, 6 Jul 2021 08:09:46 +0100 Subject: [PATCH] Renamed SetPolicy for old art no promo The new name, i.e. OldArtExcludedPromoAndOnlineEditions is more self-explanatory - a bit long though. Won't exclude that I will come back at namings after having now worked on CardEdition.Type revision --- forge-core/src/main/java/forge/card/CardEdition.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/forge-core/src/main/java/forge/card/CardEdition.java b/forge-core/src/main/java/forge/card/CardEdition.java index 49dd0dcc0ac..717adac74f1 100644 --- a/forge-core/src/main/java/forge/card/CardEdition.java +++ b/forge-core/src/main/java/forge/card/CardEdition.java @@ -732,12 +732,12 @@ public final class CardEdition implements Comparable { public CardEdition getEarliestEditionWithAllCards(CardPool cards) { Set minEditions = new HashSet<>(); - CardArtPreference strictness = CardArtPreference.OldPrintNoPromoNoOnline; + CardArtPreference strictness = CardArtPreference.OldArtExcludedPromoAndOnlineEditions; for (Entry k : cards) { PaperCard cp = StaticData.instance().getCommonCards().getCardFromEditions(k.getKey().getName(), strictness); - if( cp == null && strictness == CardArtPreference.OldPrintNoPromoNoOnline) { - strictness = CardArtPreference.OldPrint; // card is not found in core and expansions only (probably something CMD or C13) + if( cp == null && strictness == CardArtPreference.OldArtExcludedPromoAndOnlineEditions) { + strictness = CardArtPreference.OldArtAllEditions; // card is not found in core and expansions only (probably something CMD or C13) cp = StaticData.instance().getCommonCards().getCardFromEditions(k.getKey().getName(), strictness); } if ( cp == null )