From eaa2c2024d81a77250d10cac9aad497fad222d48 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 25 May 2024 17:56:24 +0200 Subject: kustrin event --- rules.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index b80ae4b..ad9a7ab 100644 --- a/rules.js +++ b/rules.js @@ -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)) -- cgit v1.2.3