mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
ensure that limited games won't pop the AI cannot play cards window
This commit is contained in:
@@ -327,8 +327,9 @@ public class Match {
|
||||
removedAnteCards.putAll(player, myRemovedAnteCards);
|
||||
}
|
||||
|
||||
if (!rAICards.isEmpty() && 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);
|
||||
boolean isLimitedGame = GameType.Quest == game.getType() || GameType.Sealed == game.getType() || GameType.Draft == game.getType();
|
||||
if (!rAICards.isEmpty() && !isLimitedGame ) {
|
||||
game.getAction().revealAnte("AI can't play well these cards:", rAICards);
|
||||
}
|
||||
|
||||
if (!removedAnteCards.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user