From feeded7885c475fad115e4389002b256fdb30b34 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Thu, 20 Feb 2025 21:17:12 +0000 Subject: Fix pass during Crowd support checks --- rules.js | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 2dd77f5..91a5f84 100644 --- a/rules.js +++ b/rules.js @@ -1078,21 +1078,12 @@ states.support_check_prep = { }, done() { push_undo() - // Check if in a Power Struggle after Crowd Turns Against Ceausescu - if (game.is_pwr_struggle) { - if (game.return !== game.active) { - change_player() - } - log_h5('Raise the Stakes') - log(`${game.active}:`) - game.state = 'raise_stakes_1' - return - } - reset_austria_hungary_border_reopened() + check_for_crowd() game.state = 'resolve_opponent_event' }, pass() { push_undo() + check_for_crowd() end_round() } } @@ -3115,6 +3106,20 @@ function permanently_remove(card) { } } +function check_for_crowd() { + // Check if in a Power Struggle after Crowd Turns Against Ceausescu + if (game.is_pwr_struggle) { + if (game.return !== game.active) { + change_player() + } + log_h5('Raise the Stakes') + log(`${game.active}:`) + game.state = 'raise_stakes_1' + return + } + reset_austria_hungary_border_reopened() +} + function check_vp() { if (game.vp >= 20) { goto_game_over(DEM, `${DEM} won an Automatic Victory!`) -- cgit v1.2.3