*Fixed there being a way for alternate card faces to be put in the card shop.

This commit is contained in:
Hellfish
2011-10-28 07:54:21 +00:00
parent b24c56d377
commit 33e4aba7ce

View File

@@ -115,8 +115,7 @@ public class BoosterGenerator {
numSpecials = bs.getSpecial();
numDoubleFaced = bs.getDoubleFaced();
Predicate<CardPrinted> filter = Predicate.and(CardPrinted.Predicates.printedInSets(cardSet.getCode()),
CardPrinted.Predicates.Presets.nonAlternate);
Predicate<CardPrinted> filter = CardPrinted.Predicates.printedInSets(cardSet.getCode());
List<CardPrinted> cardsInThisSet = filter.select(CardDb.instance().getAllCards());
for (CardPrinted c : cardsInThisSet) {
@@ -269,6 +268,9 @@ public class BoosterGenerator {
}
private void addToRarity(final CardPrinted c) {
if(c.isAlternate()) {
return;
}
if (c.isDoubleFaced() && numDoubleFaced > 0) {
doubleFaced.add(c);
} else {