summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/control/turn
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/control/turn')
-rw-r--r--src/jrummikub/control/turn/BaseAIControl.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/jrummikub/control/turn/BaseAIControl.java b/src/jrummikub/control/turn/BaseAIControl.java
index fbd9c75..55cece8 100644
--- a/src/jrummikub/control/turn/BaseAIControl.java
+++ b/src/jrummikub/control/turn/BaseAIControl.java
@@ -63,8 +63,12 @@ public class BaseAIControl extends AbstractTurnControl {
}
private void compute() {
- if (mayRedeal) {
- emitRedeal();
+ if (inspectOnly) {
+ if (mayRedeal) {
+ emitRedeal();
+ } else {
+ emitEndOfTurn();
+ }
} else {
turn();
}