summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-02-09 11:18:43 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:40 +0100
commitfc00e4b34076a69e1627c3a843adee1edd9746a6 (patch)
treeacd90215cf83d338e492b07d05073a59aaf24bf5
parent518e57949dc9601c06f4d146f6ff52246c2c5dd2 (diff)
downloadnevsky-fc00e4b34076a69e1627c3a843adee1edd9746a6.tar.gz
Stone Kremlin can be used by a besieged lord.
-rw-r--r--rules.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 948a43b..fab69d3 100644
--- a/rules.js
+++ b/rules.js
@@ -4532,6 +4532,8 @@ states.command = {
if (is_lord_besieged(game.command)) {
if (can_action_sally())
view.actions.sally = 1
+ if (can_action_stone_kremlin())
+ view.actions.stone_kremlin = 1
}
else {
@@ -6654,7 +6656,7 @@ function can_action_stone_kremlin() {
let here = get_lord_locale(game.command)
if (is_fort(here) || is_city(here) || here === LOC_NOVGOROD) {
- if (has_walls(here) || !is_friendly_locale(here))
+ if (has_walls(here) || !is_friendly_stronghold(here))
return false
return true
}