summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-08-06 18:46:00 +0200
committerTor Andersson <tor@ccxvii.net>2024-08-07 15:56:25 +0200
commit21ad18f9e681743b7394368623c9f29948182aae (patch)
tree54cd8bf7c58af166d727d6f3e65a0e386c6ed2b8
parent5810ca5b1e7c22e3544e1c40ca484cfa8d1ad632 (diff)
downloadfriedrich-21ad18f9e681743b7394368623c9f29948182aae.tar.gz
fix glitch with eliminated Hildi and his fate card
-rw-r--r--rules.js11
1 files changed, 6 insertions, 5 deletions
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)