From a399cee53288ca1dac0b203132068418807caac2 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 24 Nov 2024 23:51:46 +0100 Subject: fix political validation prompt --- rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rules.js') 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 -- cgit v1.2.3