From cbdca6dd80ba2973c64f7d38c434bffb54482a8f Mon Sep 17 00:00:00 2001 From: sprangg Date: Fri, 24 Jun 2022 01:52:08 +0300 Subject: [PATCH] Limited-type sideboarding for constructed matches where the deck type is "Limited" --- .../src/main/java/mage/client/dialog/NewTableDialog.java | 2 +- .../src/main/java/mage/client/dialog/NewTournamentDialog.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Mage.Client/src/main/java/mage/client/dialog/NewTableDialog.java b/Mage.Client/src/main/java/mage/client/dialog/NewTableDialog.java index 4f2167c5fb..0ceba17f48 100644 --- a/Mage.Client/src/main/java/mage/client/dialog/NewTableDialog.java +++ b/Mage.Client/src/main/java/mage/client/dialog/NewTableDialog.java @@ -604,7 +604,7 @@ public class NewTableDialog extends MageDialog { options.getPlayerTypes().add(player.getPlayerType()); } options.setDeckType((String) this.cbDeckType.getSelectedItem()); - options.setLimited(false); + options.setLimited(options.getDeckType().startsWith("Limited")); options.setMatchTimeLimit((MatchTimeLimit) this.cbTimeLimit.getSelectedItem()); options.setAttackOption((MultiplayerAttackOption) this.cbAttackOption.getSelectedItem()); options.setSkillLevel((SkillLevel) this.cbSkillLevel.getSelectedItem()); 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 2fc51e40be..4a68f92597 100644 --- a/Mage.Client/src/main/java/mage/client/dialog/NewTournamentDialog.java +++ b/Mage.Client/src/main/java/mage/client/dialog/NewTournamentDialog.java @@ -1314,7 +1314,7 @@ public class NewTournamentDialog extends MageDialog { tOptions.getLimitedOptions().setDraftCubeName(""); tOptions.getMatchOptions().setDeckType((String) this.cbDeckType.getSelectedItem()); tOptions.getMatchOptions().setGameType(((GameTypeView) this.cbGameType.getSelectedItem()).getName()); - tOptions.getMatchOptions().setLimited(false); + tOptions.getMatchOptions().setLimited(tOptions.getMatchOptions().getDeckType().startsWith("Limited")); } String serverAddress = SessionHandler.getSession().getServerHostname().orElse("");