diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-07-13 13:18:12 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 11:54:52 +0100 |
commit | 95e8903165e33f5547005407de717959b59e0841 (patch) | |
tree | 40ef7091f67d02051f2d66a2e91cdf52626e49e6 /rules.js | |
parent | 6a29729abc39ba5e2c9e333d3fcfe7ed0c9bc833 (diff) | |
download | wilderness-war-95e8903165e33f5547005407de717959b59e0841.tar.gz |
Push undo state at "Siege or Move" questions.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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() { |