From 954311973cc49c63c7aacddee7cba70e50bfb5b8 Mon Sep 17 00:00:00 2001 From: myk Date: Thu, 28 Feb 2013 19:48:20 +0000 Subject: [PATCH] log, but don't pop up warning about non-AI cards in quest decks. the popup hinders immersion and if they are there, it is likely intentional --- src/main/java/forge/game/GameNew.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/forge/game/GameNew.java b/src/main/java/forge/game/GameNew.java index c22b0643d92..f0ad3c3b15d 100644 --- a/src/main/java/forge/game/GameNew.java +++ b/src/main/java/forge/game/GameNew.java @@ -140,7 +140,7 @@ public class GameNew { player.shuffle(); } - if( player instanceof AIPlayer ) { + if(player instanceof AIPlayer) { rAICards.addAll(getCardsAiCantPlayWell(myDeck)); } @@ -158,7 +158,12 @@ public class GameNew { if (rAICards.size() > 0) { String message = buildFourColumnList("AI deck contains the following cards that it can't play or may be buggy:", rAICards); - JOptionPane.showMessageDialog(null, message, "", JOptionPane.INFORMATION_MESSAGE); + if (GameType.Quest == game.getType()) { + // log, but do not visually warn. quest decks are supposedly already vetted by the quest creator + System.err.println(message); + } else { + JOptionPane.showMessageDialog(null, message, "", JOptionPane.INFORMATION_MESSAGE); + } } if (!removedAnteCards.isEmpty()) {