Allow for eternal cards to not be filtered out by funny filter (#5505)

This commit is contained in:
Chris H
2024-07-03 09:46:41 -04:00
committed by GitHub
parent 81fa38cc27
commit c92dae1b99
3 changed files with 10 additions and 2 deletions

View File

@@ -92,7 +92,11 @@ public class StaticData {
if (!loadNonLegalCards) {
for (CardEdition e : editions) {
if (e.getType() == CardEdition.Type.FUNNY || e.getBorderColor() == CardEdition.BorderColor.SILVER) {
List<CardEdition.CardInSet> eternalCards = e.getFunnyEternalCards();
for (CardEdition.CardInSet cis : e.getAllCardsInSet()) {
if (eternalCards.contains(cis))
continue;
funnyCards.add(cis.name);
}
}

View File

@@ -141,7 +141,8 @@ public final class CardEdition implements Comparable<CardEdition> {
BOX_TOPPER("box topper"),
DUNGEONS("dungeons"),
JUMPSTART("jumpstart"),
REBALANCED("rebalanced");
REBALANCED("rebalanced"),
ETERNAL("eternal");
private final String name;
@@ -383,6 +384,7 @@ public final class CardEdition implements Comparable<CardEdition> {
public List<CardInSet> getCards() { return cardMap.get(EditionSectionWithCollectorNumbers.CARDS.getName()); }
public List<CardInSet> getRebalancedCards() { return cardMap.get(EditionSectionWithCollectorNumbers.REBALANCED.getName()); }
public List<CardInSet> getFunnyEternalCards() { return cardMap.get(EditionSectionWithCollectorNumbers.ETERNAL.getName()); }
public List<CardInSet> getAllCardsInSet() {
return cardsInSet;
}

View File

@@ -13,8 +13,10 @@ ScryfallCode=PCEL
5 R Fraternal Exaltation @Susan Garfield
6 M Robot Chicken @Robot Chicken
7 M Phoenix Heart @Drew Tucker
8 R Zur the Enchanter @Chase Stone
9 M Deb Thomas @Kieran Yanner
[eternal]
8 R Zur the Enchanter @Chase Stone
[tokens]
r_1_1_employee