ensure that limited games won't pop the AI cannot play cards window

This commit is contained in:
Maxmtg
2013-12-26 07:25:16 +00:00
parent bd4dd064be
commit d4e193f39a

View File

@@ -327,8 +327,9 @@ public class Match {
removedAnteCards.putAll(player, myRemovedAnteCards); removedAnteCards.putAll(player, myRemovedAnteCards);
} }
if (!rAICards.isEmpty() && GameType.Quest != game.getType() && GameType.Sealed != game.getType() && GameType.Draft != game.getType() ) { boolean isLimitedGame = GameType.Quest == game.getType() || GameType.Sealed == game.getType() || GameType.Draft == game.getType();
game.getAction().revealAnte("These cards from AIs' decks cannot be played or may be buggy", rAICards); if (!rAICards.isEmpty() && !isLimitedGame ) {
game.getAction().revealAnte("AI can't play well these cards:", rAICards);
} }
if (!removedAnteCards.isEmpty()) { if (!removedAnteCards.isEmpty()) {