summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-07-18 17:55:08 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-17 13:11:25 +0100
commit459586dfb04f3b79a4180e84e3603f5bffaf2abc (patch)
tree0a3c81e46128ba2740e8d7228ba72507cea4a1fb /rules.js
parentf21b40df81c695a0adf05e1d8107956d8fd918ab (diff)
downloadrommel-in-the-desert-459586dfb04f3b79a4180e84e3603f5bffaf2abc.tar.gz
foo
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 7519ebd..b4dd302 100644
--- a/rules.js
+++ b/rules.js
@@ -1177,6 +1177,8 @@ states.select_moves = {
}
gen_action('group')
gen_action('regroup')
+ if (game.turn_option === 'pass')
+ gen_action('end_turn')
},
group() {
push_undo()
@@ -1186,6 +1188,10 @@ states.select_moves = {
push_undo()
game.state = 'regroup_move_command_point'
},
+ end_turn() {
+ clear_undo()
+ end_player_turn()
+ }
}
function gen_rommel_move() {