From 9855815fe110cdc9b207dd8f9f25c82f67836f70 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 6 Oct 2023 15:53:23 +0200 Subject: fix check_protection_capabilities --- rules.js | 4 ++-- 1 file 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 -- cgit v1.2.3