summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-07-13 13:18:12 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 11:54:52 +0100
commit95e8903165e33f5547005407de717959b59e0841 (patch)
tree40ef7091f67d02051f2d66a2e91cdf52626e49e6 /rules.js
parent6a29729abc39ba5e2c9e333d3fcfe7ed0c9bc833 (diff)
downloadwilderness-war-95e8903165e33f5547005407de717959b59e0841.tar.gz
Push undo state at "Siege or Move" questions.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js6
1 files changed, 6 insertions, 0 deletions
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() {