From 066db0195cb566066354eab404e9bf1e7a29e62d Mon Sep 17 00:00:00 2001 From: iainp5 Date: Fri, 20 Sep 2024 12:49:49 +0100 Subject: Fix for The Tyrant is Gone --- rules.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 9965730..2b541da 100644 --- a/rules.js +++ b/rules.js @@ -1092,10 +1092,9 @@ states.raise_stakes_1 = { if (game.raised_stakes_discard === 0) { gen_action('pass') } - } - - for (let card of game.valid_cards) { + for (let card of game.valid_cards) { gen_action_card(card) + } } }, card(card) { @@ -1137,10 +1136,9 @@ states.raise_stakes_2 = { if (game.raised_stakes_discard === 0) { gen_action('pass') } - } - - for (let card of game.valid_cards) { - gen_action_card(card) + for (let card of game.valid_cards) { + gen_action_card(card) + } } }, card(card) { @@ -1535,6 +1533,7 @@ states.choose_power = { //Check if The Tyrant is Gone occurs if (game.table_cards.includes(97) && game.pwr_struggle_in === 'Romania' && game.persistent_events['the_crowd_turns_against_ceausescu']) { + game.return_state = 'finish_scoring' game.state = 'the_tyrant_is_gone' } else { game.state = 'finish_scoring' -- cgit v1.2.3