summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-09 18:10:40 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-09 18:10:40 +0200
commit422c7760adfee46d3a6c3be9dba7347a5ab0e12e (patch)
tree24c6daff90575671e68925859031c2fb26ee267b
parentcc11c3552042118ce631c3c1541efe298df92e8c (diff)
downloadplantagenet-422c7760adfee46d3a6c3be9dba7347a5ab0e12e.tar.gz
fix thomas bourchier
-rw-r--r--rules.js2
-rw-r--r--rules.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 0f6a879..cf060b2 100644
--- a/rules.js
+++ b/rules.js
@@ -3094,7 +3094,7 @@ function goto_command() {
game.actions += 1;
}
}
- if (lord_has_capability(game.command, AOW_YORK_THOMAS_BOURCHIER) && is_city(here)) {
+ if (lord_has_capability(game.command, AOW_YORK_THOMAS_BOURCHIER) && is_city(here) && is_friendly_locale(here)) {
logcap(AOW_YORK_THOMAS_BOURCHIER);
game.actions += 1;
}
diff --git a/rules.ts b/rules.ts
index 62ed47d..7ea5168 100644
--- a/rules.ts
+++ b/rules.ts
@@ -3784,7 +3784,7 @@ function goto_command() {
game.actions += 1
}
}
- if (lord_has_capability(game.command, AOW_YORK_THOMAS_BOURCHIER) && is_city(here)) {
+ if (lord_has_capability(game.command, AOW_YORK_THOMAS_BOURCHIER) && is_city(here) && is_friendly_locale(here)) {
logcap(AOW_YORK_THOMAS_BOURCHIER)
game.actions += 1
}