diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2025-02-08 17:57:37 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2025-02-08 18:07:43 +0000 |
commit | c4ca26e50ddab62c5183415856cb6f5f83977188 (patch) | |
tree | 632ee0b56d1c55f184a678185e2f033b72558ac0 /rules.js | |
parent | 28d026a9a61a820d054d8562eaaa0e2c82dd84be (diff) | |
download | 1989-dawn-of-freedom-c4ca26e50ddab62c5183415856cb6f5f83977188.tar.gz |
Fix no targets for support check
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1030,7 +1030,10 @@ states.tst_goddess_draw = { states.support_check_prep = { inactive: 'do Support Checks', prompt() { - if (game.available_ops === 0) { + if (game.valid_spaces.length === 0 && game.available_ops > 0) { + view.prompt = 'Support Checks: No targets remaining. Pass.' + gen_action('pass') + } else if (game.available_ops === 0) { if (game.is_pwr_struggle) { view.prompt = 'The Crowd Turns Against Ceausescu: Support Checks done.' gen_action('done') @@ -1087,6 +1090,10 @@ states.support_check_prep = { reset_austria_hungary_border_reopened() game.state = 'resolve_opponent_event' }, + pass() { + push_undo() + end_round() + } } states.do_support_check = { |