From c96c7ddc4c81179616a85b5920d27b45ae093a34 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Tue, 8 Oct 2024 18:07:00 +0100 Subject: Fix for AHBR with Common European Home cards --- rules.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 7fd0bb8..094bb5c 100644 --- a/rules.js +++ b/rules.js @@ -6906,6 +6906,10 @@ states.vm_common_european_home_play = { push_undo() game.vm_available_ops = cards[game.vm_event].ops valid_spaces_infl() + // If ABHR - Set AHBR tracker to true + if (game.persistent_events.includes(58)) { + game.austria_hungary_border_reopened_tracker = true + } game.state = 'vm_add_infl' }, support_check() { @@ -7225,7 +7229,11 @@ states.vm_goodbye_lenin_ops = { }*/ console.log('goodbye lenin: influence selected') valid_spaces_infl() - + + // If ABHR - Set AHBR tracker to true + if (game.persistent_events.includes(58)) { + game.austria_hungary_border_reopened_tracker = true + } game.state = 'vm_add_infl' }, support_check() { @@ -8639,6 +8647,10 @@ states.vm_tst_8_ops = { push_undo() game.vm_available_ops = cards[game.played_card].ops valid_spaces_infl() + // If ABHR - Set AHBR tracker to true + if (game.persistent_events.includes(58)) { + game.austria_hungary_border_reopened_tracker = true + } game.state = 'vm_add_infl' }, support_check() { -- cgit v1.2.3