From 6591dadc4c46b1a6976de43249dcbc642e5d7311 Mon Sep 17 00:00:00 2001 From: Agetian Date: Thu, 15 Jun 2017 05:19:49 +0000 Subject: [PATCH] - Fixed the flooding of quest shop with dozens of color booster packs (now the total number of color booster packs corresponds to the total number of standard booster packs). --- forge-gui/src/main/java/forge/quest/QuestUtilCards.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/forge-gui/src/main/java/forge/quest/QuestUtilCards.java b/forge-gui/src/main/java/forge/quest/QuestUtilCards.java index ea3fb30ca3e..e1c72787259 100644 --- a/forge-gui/src/main/java/forge/quest/QuestUtilCards.java +++ b/forge-gui/src/main/java/forge/quest/QuestUtilCards.java @@ -533,11 +533,10 @@ public final class QuestUtilCards { List output = new ArrayList<>(); - for (String color : SealedProduct.specialSets) { - for (int i = 0; i < quantity; i++) { - output.add(new BoosterPack(color, getColoredBoosterTemplate(color))); - } - } + for (int i = 0; i < quantity; i++) { + String color = SealedProduct.specialSets.get(MyRandom.getRandom().nextInt(SealedProduct.specialSets.size())); + output.add(new BoosterPack(color, getColoredBoosterTemplate(color))); + } return output;