From 2d03154db7fa2e25b7188c0599d1807ae345cd2e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 25 May 2024 19:32:33 +0200 Subject: confirm ending movement with unmoved pieces --- rules.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index f0b082d..bc844e8 100644 --- a/rules.js +++ b/rules.js @@ -1347,7 +1347,10 @@ states.movement = { else prompt("Move your generals and supply trains.") - view.actions.end_movement = 1 + if (done_trains && done_generals) + view.actions.end_movement = 1 + else + view.actions.confirm_end_movement = 1 }, piece(p) { push_undo() @@ -1375,6 +1378,9 @@ states.movement = { else resume_move_general() }, + confirm_end_movement() { + this.end_movement() + }, end_movement() { push_undo() goto_recruit() -- cgit v1.2.3