mirror of
https://github.com/correl/mage.git
synced 2025-03-17 01:06:26 -09:00
* UI: fixed non random packs richman mode (#5672);
This commit is contained in:
parent
7a556ea58f
commit
d2ab867e99
1 changed files with 1 additions and 1 deletions
|
@ -1226,6 +1226,7 @@ public class NewTournamentDialog extends MageDialog {
|
||||||
this.isRichMan = tournamentType.isRichMan();
|
this.isRichMan = tournamentType.isRichMan();
|
||||||
tOptions.getLimitedOptions().getSetCodes().clear();
|
tOptions.getLimitedOptions().getSetCodes().clear();
|
||||||
ArrayList<String> selected = randomPackSelector.getSelectedPacks();
|
ArrayList<String> selected = randomPackSelector.getSelectedPacks();
|
||||||
|
Collections.shuffle(selected);
|
||||||
int maxPacks = 3 * (players.size() + 1);
|
int maxPacks = 3 * (players.size() + 1);
|
||||||
if (tournamentType.isRichMan()) {
|
if (tournamentType.isRichMan()) {
|
||||||
maxPacks = 36;
|
maxPacks = 36;
|
||||||
|
@ -1235,7 +1236,6 @@ public class NewTournamentDialog extends MageDialog {
|
||||||
infoString.append(maxPacks);
|
infoString.append(maxPacks);
|
||||||
infoString.append(" sets will be randomly chosen.");
|
infoString.append(" sets will be randomly chosen.");
|
||||||
JOptionPane.showMessageDialog(MageFrame.getDesktop(), infoString, "Information", JOptionPane.INFORMATION_MESSAGE);
|
JOptionPane.showMessageDialog(MageFrame.getDesktop(), infoString, "Information", JOptionPane.INFORMATION_MESSAGE);
|
||||||
Collections.shuffle(selected);
|
|
||||||
tOptions.getLimitedOptions().getSetCodes().addAll(selected.subList(0, maxPacks));
|
tOptions.getLimitedOptions().getSetCodes().addAll(selected.subList(0, maxPacks));
|
||||||
} else {
|
} else {
|
||||||
tOptions.getLimitedOptions().getSetCodes().addAll(selected);
|
tOptions.getLimitedOptions().getSetCodes().addAll(selected);
|
||||||
|
|
Loading…
Add table
Reference in a new issue