diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-10-06 15:53:23 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-10 18:16:55 +0100 |
commit | 9855815fe110cdc9b207dd8f9f25c82f67836f70 (patch) | |
tree | c6c42ab9df63f58db58c7b3f983b93966bc04b54 | |
parent | 2907029844312c5d373a91684d6cd265f454a19a (diff) | |
download | plantagenet-9855815fe110cdc9b207dd8f9f25c82f67836f70.tar.gz |
fix check_protection_capabilities
-rw-r--r-- | rules.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |