From 4ea2ea881e307e2b6f0897f62eabed4deb939b0d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 15 Jan 2024 16:58:40 +0100 Subject: Add undo step when clicking next in place on top/bottom of draw. --- rules.js | 1 + 1 file changed, 1 insertion(+) diff --git a/rules.js b/rules.js index 3239bb7..39f941c 100644 --- a/rules.js +++ b/rules.js @@ -3224,6 +3224,7 @@ states.vm_place_any_on_top_of_draw = { game.vm.on_top.unshift(c) }, next() { + push_undo() if (game.vm.draw.length > 0) game.state = "vm_place_any_on_bottom_of_draw" else -- cgit v1.2.3