From c4ca26e50ddab62c5183415856cb6f5f83977188 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Sat, 8 Feb 2025 17:57:37 +0000 Subject: Fix no targets for support check --- rules.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 00cbaab..36639e4 100644 --- a/rules.js +++ b/rules.js @@ -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 = { -- cgit v1.2.3