summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-02 18:35:43 +0100
committerTor Andersson <tor@ccxvii.net>2023-12-02 18:35:43 +0100
commit7c8d4887b6110657e7e1643fc0991944bbf2a4f3 (patch)
tree7da1886694eafbeb4edaae7255036ad5907b9daf
parentc2c07055d8ad64ae384c5997bfaa1b766d09f15d (diff)
downloadvotes-for-women-7c8d4887b6110657e7e1643fc0991944bbf2a4f3.tar.gz
Allow Undo for "Next" button after rolling.
-rw-r--r--rules.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 85335e2..551e54f 100644
--- a/rules.js
+++ b/rules.js
@@ -2760,6 +2760,7 @@ states.vm_roll = {
game.vm.roll = roll_ndx(game.vm.count, game.vm.d, "Re-rolled")
},
next() {
+ push_undo()
vm_next()
}
}