summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-11 16:05:19 +0100
committerTor Andersson <tor@ccxvii.net>2023-12-11 20:26:34 +0100
commitdad860b5cd90fa8e3d365864ef75ec17d19cc701 (patch)
treeb8a3246e5f9219a99aeb35d9a5046c54451890cf
parentc11c5d79fb029614210b905569f9602d20ae3c86 (diff)
downloadvotes-for-women-dad860b5cd90fa8e3d365864ef75ec17d19cc701.tar.gz
Add more undo points when accepting die rolls.
-rw-r--r--rules.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index bfca47e..c938afd 100644
--- a/rules.js
+++ b/rules.js
@@ -1570,6 +1570,7 @@ states.campaigning = {
game.roll = roll_ndx_list(game.count, game.dice, "Re-rolled")
},
accept() {
+ push_undo()
goto_campaigning_assign()
}
}
@@ -1860,6 +1861,7 @@ states.lobbying = {
game.roll = roll_ndx_count_success(game.count, game.dice, "Re-rolled")
},
accept() {
+ push_undo()
if (game.roll > 0) {
game.count = game.roll
if (game.active === SUF) {