summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 6ddbb46..a4e9934 100644
--- a/rules.js
+++ b/rules.js
@@ -2494,8 +2494,12 @@ function goto_pick_first_move() {
logbr()
log("Selected\n" + game.activation.map(log_piece_name_and_place).join(",\n") + ".")
game.state = 'pick_move'
- } else {
+ } else if (game.activation.length > 0) {
goto_move_piece(game.activation.pop())
+ } else {
+ delete game.activation_value
+ delete game.activation
+ end_action_phase()
}
}