From 046bcaac4ccae61b567c6e4cf8a79880127bc4c1 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 7 May 2023 21:35:49 +0200 Subject: Fix transition after attempting to removie a piece with ops. --- rules.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index d293e17..5ee771b 100644 --- a/rules.js +++ b/rules.js @@ -1349,6 +1349,7 @@ states.operations_remove = { if (str >= 3) { log("Military strength " + str + ".") remove_piece(p) + resume_operations_remove() } else if (game.count >= 1) { log("Military strength " + str + ".") game.who = p @@ -1360,9 +1361,8 @@ states.operations_remove = { } } else { remove_piece(p) + resume_operations_remove() } - - resume_operations_remove() }, place() { push_undo() @@ -1416,6 +1416,8 @@ function resume_operations_remove() { goto_operations_done() else if (!can_operations_remove()) goto_operations_place() + else + game.state = "operations_remove" } function goto_operations_place() { -- cgit v1.2.3