diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-05-25 17:56:24 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-05-30 21:59:25 +0200 |
commit | eaa2c2024d81a77250d10cac9aad497fad222d48 (patch) | |
tree | f87b2fbdeb76ab7c4eaf59742c035499b530860e | |
parent | 99bb4e1801780bf29b647294d65803c8ad101c72 (diff) | |
download | friedrich-eaa2c2024d81a77250d10cac9aad497fad222d48.tar.gz |
kustrin event
-rw-r--r-- | rules.js | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -341,7 +341,7 @@ function format_stack(s) { /* CARDS OF FATE (PASSIVE) */ -const NEXT_TURN_IF_FERMOR_STARTS_HIS_MOVE_IN_KÜSTRIN_H6_OR_IN_AN_ADJACENT_CITY_HE_MAY_NOT_MOVE = 5 +const NEXT_TURN_IF_FERMOR_STARTS_HIS_MOVE_IN_KUSTRIN_OR_IN_AN_ADJACENT_CITY_HE_MAY_NOT_MOVE = 5 const NEXT_TURN_SALTIKOV_MAY_MOVE_ONLY_2_CITIES = 7 const NEXT_TURN_RICHELIEU_MAY_MOVE_2_CITIES_ONLY = 18 @@ -1815,6 +1815,14 @@ states.move_general_OLD = { } } + if (game.count === 0) { + if (game.fx === NEXT_TURN_IF_FERMOR_STARTS_HIS_MOVE_IN_KUSTRIN_OR_IN_AN_ADJACENT_CITY_HE_MAY_NOT_MOVE) { + if (set_has(game.selected, GEN_FERMOR) && set_has(data.cities.adjacent[KUSTRIN], here)) { + prompt("Move " + format_selected() + ". Fermor may not move this turn.") + return + } + } + } if (game.count < movement_range() + game.major) for (let next of data.cities.major_roads[here]) if (can_move_general_to(next)) |