diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-08-06 18:46:00 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-08-07 15:56:25 +0200 |
commit | 21ad18f9e681743b7394368623c9f29948182aae (patch) | |
tree | 54cd8bf7c58af166d727d6f3e65a0e386c6ed2b8 | |
parent | 5810ca5b1e7c22e3544e1c40ca484cfa8d1ad632 (diff) | |
download | friedrich-21ad18f9e681743b7394368623c9f29948182aae.tar.gz |
fix glitch with eliminated Hildi and his fate card
-rw-r--r-- | rules.js | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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) |