From 95e8903165e33f5547005407de717959b59e0841 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 13 Jul 2022 13:18:12 +0200 Subject: Push undo state at "Siege or Move" questions. --- rules.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rules.js b/rules.js index d660311..1a116f2 100644 --- a/rules.js +++ b/rules.js @@ -2812,17 +2812,21 @@ states.siege_or_move = { gen_action('move') }, siege() { + push_undo() goto_siege(moving_piece_space()) }, assault() { + push_undo() goto_assault(moving_piece_space()) }, play_event(c) { + push_undo() game.siege_where = moving_piece_space() play_card(c) goto_surrender() }, move() { + push_undo() resume_move() }, } @@ -3286,9 +3290,11 @@ states.move = { game.state = 'drop_off' }, siege() { + push_undo() goto_siege(moving_piece_space()) }, assault() { + push_undo() goto_assault(moving_piece_space()) }, stop() { -- cgit v1.2.3