summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-25 17:56:24 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-30 21:59:25 +0200
commiteaa2c2024d81a77250d10cac9aad497fad222d48 (patch)
treef87b2fbdeb76ab7c4eaf59742c035499b530860e
parent99bb4e1801780bf29b647294d65803c8ad101c72 (diff)
downloadfriedrich-eaa2c2024d81a77250d10cac9aad497fad222d48.tar.gz
kustrin event
-rw-r--r--rules.js10
1 files changed, 9 insertions, 1 deletions
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))