summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-06 15:53:23 +0200
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:16:55 +0100
commit9855815fe110cdc9b207dd8f9f25c82f67836f70 (patch)
treec6c42ab9df63f58db58c7b3f983b93966bc04b54
parent2907029844312c5d373a91684d6cd265f454a19a (diff)
downloadplantagenet-9855815fe110cdc9b207dd8f9f25c82f67836f70.tar.gz
fix check_protection_capabilities
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index cd10346..6ab5480 100644
--- a/rules.js
+++ b/rules.js
@@ -5637,7 +5637,7 @@ function check_protection_capabilities(protection) {
}
if (game.what === MEN_AT_ARMS) {
- if (lord_has_capability(game.who, AOW_YORK_BARRICADES) && has_favoury_marker(here))
+ if (lord_has_capability(game.who, AOW_YORK_BARRICADES) && has_favoury_marker(game.battle.where))
protection += 1
}
if (game.what === MEN_AT_ARMS) {
@@ -5646,7 +5646,7 @@ function check_protection_capabilities(protection) {
}
}
if (game.what === MILITIA || game.what === LONGBOWMEN) {
- if (lord_has_capability(game.who, AOW_YORK_BARRICADES) && has_favoury_marker(here))
+ if (lord_has_capability(game.who, AOW_YORK_BARRICADES) && has_favoury_marker(game.battle.where))
protection += 1
}
return protection