summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-24 23:51:46 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-24 23:51:54 +0100
commita399cee53288ca1dac0b203132068418807caac2 (patch)
tree99467a61df91fbc78d6eca148110fddc47d5f789 /rules.js
parent830a87ca53a1a6b829dff538e9b610a5a6ac495c (diff)
downloadmaria-a399cee53288ca1dac0b203132068418807caac2.tar.gz
fix political validation prompt
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 515e40e..4e084f9 100644
--- a/rules.js
+++ b/rules.js
@@ -4893,7 +4893,7 @@ states.political_card_done = {
}
function end_execute_political_card() {
- // Ugly hack to restore the political card executor by peeking at the checkpoint state!
+ // icky hack to read power of the card executor
set_active_to_power(game.restart.power)
array_remove_item(game.political, game.pc)
delete game.pc
@@ -6619,7 +6619,7 @@ states.validate_politics = {
dont_snap: true,
inactive: "validate promise",
prompt() {
- let other = current_sequence_of_play().power
+ let other = game.restart.power // icky hack to read power of the card executor
prompt("Did " + power_name[other] + " keep their politics promise?")
view.actions.yes = 1
view.actions.no = 1