CardThemedDeckBuilder: some final fixes

This commit is contained in:
Hanmac
2018-04-20 13:04:12 +02:00
parent 47cf2040f6
commit 6911906c4f

View File

@@ -509,7 +509,7 @@ public class CardThemedDeckBuilder extends DeckGeneratorBase {
} }
Predicate<PaperCard> possibleFromFullPool = new Predicate<PaperCard>() { Predicate<PaperCard> possibleFromFullPool = new Predicate<PaperCard>() {
Set deckListNames = getDeckListNames(); final Set<String> deckListNames = getDeckListNames();
@Override @Override
public boolean apply(PaperCard card) { public boolean apply(PaperCard card) {
return format.isLegalCard(card) return format.isLegalCard(card)
@@ -617,7 +617,7 @@ public class CardThemedDeckBuilder extends DeckGeneratorBase {
deckList.addAll(snowLands); deckList.addAll(snowLands);
aiPlayables.removeAll(snowLands); aiPlayables.removeAll(snowLands);
rankedColorList.remove(snowLands); rankedColorList.removeAll(snowLands);
} }
/** /**
@@ -744,7 +744,7 @@ public class CardThemedDeckBuilder extends DeckGeneratorBase {
* number to add * number to add
*/ */
private void addRandomCards(int num) { private void addRandomCards(int num) {
Set deckListNames = getDeckListNames(); final Set<String> deckListNames = getDeckListNames();
Predicate<PaperCard> possibleFromFullPool = new Predicate<PaperCard>() { Predicate<PaperCard> possibleFromFullPool = new Predicate<PaperCard>() {
@Override @Override
public boolean apply(PaperCard card) { public boolean apply(PaperCard card) {