From 21ad18f9e681743b7394368623c9f29948182aae Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 6 Aug 2024 18:46:00 +0200 Subject: fix glitch with eliminated Hildi and his fate card --- rules.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 0f645bd..417951c 100644 --- a/rules.js +++ b/rules.js @@ -4053,11 +4053,12 @@ states.prussia_may_move_hildburghausen_2_cities_westwards = { view.actions.pass = 1 let here = game.pos[GEN_HILDBURGHAUSEN] - for (let a of data.cities.adjacent[here]) - if (!has_any_piece(a)) - for (let b of data.cities.adjacent[a]) - if (is_west_of(here, b) && !has_any_piece(b)) - gen_action_space(b) + if (here < ELIMINATED) + for (let a of data.cities.adjacent[here]) + if (!has_any_piece(a)) + for (let b of data.cities.adjacent[a]) + if (is_west_of(here, b) && !has_any_piece(b)) + gen_action_space(b) }, space(s) { log("P" + GEN_HILDBURGHAUSEN) -- cgit v1.2.3