Added Gateway Plaza exception to RNA pack generation

This commit is contained in:
Evan Kranzler 2019-01-12 11:32:59 -05:00
parent ee7ea4e8fe
commit 5d65be47f2

View file

@ -318,6 +318,10 @@ public final class RavnicaAllegiance extends ExpansionSet {
if (maxCardNumberInBooster != Integer.MAX_VALUE) { if (maxCardNumberInBooster != Integer.MAX_VALUE) {
savedCardsInfos.removeIf(next -> next.getCardNumberAsInt() > maxCardNumberInBooster); savedCardsInfos.removeIf(next -> next.getCardNumberAsInt() > maxCardNumberInBooster);
} }
criteria = new CardCriteria();
// Gateway Plaza is a normal common: https://twitter.com/EliShffrn/status/1043156989218414593s
criteria.setCodes(this.code).nameExact("Gateway Plaza");
savedCardsInfos.addAll(CardRepository.instance.findCards(criteria));
savedCards.put(rarity, savedCardsInfos); savedCards.put(rarity, savedCardsInfos);
} }
// Return a copy of the saved cards information, as not to modify the original. // Return a copy of the saved cards information, as not to modify the original.