From 459586dfb04f3b79a4180e84e3603f5bffaf2abc Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 18 Jul 2022 17:55:08 +0200 Subject: foo --- rules.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'rules.js') 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() { -- cgit v1.2.3