From 3355552cf7fbd044afb6f4832b255cb77bb2946d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 1 Nov 2023 18:08:53 +0100 Subject: fix undo --- rules.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rules.js b/rules.js index c1ae2c8..54e8aab 100644 --- a/rules.js +++ b/rules.js @@ -5082,7 +5082,8 @@ states.gov_coup_attempt_select_units = { gen_action("done") } - view.actions.undo = 1 + if (game.selected.length > 0) + view.actions.undo = 1 }, undo() { if (game.selected.length > 0) -- cgit v1.2.3