diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2025-02-20 21:17:12 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2025-02-20 21:17:18 +0000 |
commit | feeded7885c475fad115e4389002b256fdb30b34 (patch) | |
tree | 3de8d7ad0aa6f9d1c59fd8e7ace6f90afdcbd7c4 | |
parent | 9b2ad2b20b3b89ffccec525a3b1637e5f64db122 (diff) | |
download | 1989-dawn-of-freedom-feeded7885c475fad115e4389002b256fdb30b34.tar.gz |
Fix pass during Crowd support checks
-rw-r--r-- | rules.js | 27 |
1 files changed, 16 insertions, 11 deletions
@@ -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!`) |