mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +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);
|
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()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user