From d2ab867e991b863401477be1816af273d0e49519 Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Mon, 8 Apr 2019 20:48:52 +0400 Subject: [PATCH] * UI: fixed non random packs richman mode (#5672); --- .../src/main/java/mage/client/dialog/NewTournamentDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage.Client/src/main/java/mage/client/dialog/NewTournamentDialog.java b/Mage.Client/src/main/java/mage/client/dialog/NewTournamentDialog.java index 0bcde553f2..ffc4c952ed 100644 --- a/Mage.Client/src/main/java/mage/client/dialog/NewTournamentDialog.java +++ b/Mage.Client/src/main/java/mage/client/dialog/NewTournamentDialog.java @@ -1226,6 +1226,7 @@ public class NewTournamentDialog extends MageDialog { this.isRichMan = tournamentType.isRichMan(); tOptions.getLimitedOptions().getSetCodes().clear(); ArrayList selected = randomPackSelector.getSelectedPacks(); + Collections.shuffle(selected); int maxPacks = 3 * (players.size() + 1); if (tournamentType.isRichMan()) { maxPacks = 36; @@ -1235,7 +1236,6 @@ public class NewTournamentDialog extends MageDialog { infoString.append(maxPacks); infoString.append(" sets will be randomly chosen."); JOptionPane.showMessageDialog(MageFrame.getDesktop(), infoString, "Information", JOptionPane.INFORMATION_MESSAGE); - Collections.shuffle(selected); tOptions.getLimitedOptions().getSetCodes().addAll(selected.subList(0, maxPacks)); } else { tOptions.getLimitedOptions().getSetCodes().addAll(selected);