summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-02-17 13:45:50 +0100
committerTor Andersson <tor@ccxvii.net>2025-02-17 13:45:50 +0100
commitafddd8e92c29e4818245adb54a20b53f6898e1a8 (patch)
tree1e12eee07f1cd8b949357cc1f55b310827bb3f3f
parent85a2443c919a61efc6bb783af2a6aba1351f6258 (diff)
downloadmaria-validate.tar.gz
fix bugs in imperial election validationvalidate
-rw-r--r--rules.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 959e112..72f7a3e 100644
--- a/rules.js
+++ b/rules.js
@@ -7477,13 +7477,14 @@ states.validate_election = {
dont_snap: true,
inactive: "confirm that promises were kept",
prompt() {
- let other = current_sequence_of_play().power
+ let other = game.restart.power // icky hack to read power of the voter
prompt("Did " + power_name[other] + " keep their imperial election promise?")
view.actions.keep = 1
view.actions.break = 1
view.actions.undo = 0
},
keep() {
+ game.power = game.restart.power
next_imperial_election()
},
break() {