From b7fb52c7a0bf56d34d7ad82258eb408fcd32b93d Mon Sep 17 00:00:00 2001 From: austinio7116 Date: Sat, 22 Jun 2019 22:11:00 +0100 Subject: [PATCH] Removing Commander from the list of formats shown in the deck item view as it only checks against the banlist, not other deckbuilding requirements. (cherry picked from commit a6f3371) --- forge-game/src/main/java/forge/game/GameFormat.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/forge-game/src/main/java/forge/game/GameFormat.java b/forge-game/src/main/java/forge/game/GameFormat.java index fe04577d8bd..64358578f7f 100644 --- a/forge-game/src/main/java/forge/game/GameFormat.java +++ b/forge-game/src/main/java/forge/game/GameFormat.java @@ -509,6 +509,10 @@ public class GameFormat implements Comparable { //exclude Digital formats from lists for now continue; } + if (gf.getFormatSubType().equals(FormatSubType.Commander)){ + //exclude Commander format as other deck checks are not performed here + continue; + } if (gf.getFormatType().equals(FormatType.Historic) && coveredTypes.contains(gf.getFormatSubType()) && !exhaustive){ //exclude duplicate formats - only keep first of e.g. Standard historical