diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-05-23 21:51:41 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-05-23 21:51:41 +0200 |
commit | 53965f0f71892e3aabffbf37c31ebe15f7652505 (patch) | |
tree | 4ddf628f55f66885e7b728ef35b188cb4ec4731b | |
parent | 44a474bd5bd9f6fd5b6362a0e97cb462901252af (diff) | |
download | plantagenet-53965f0f71892e3aabffbf37c31ebe15f7652505.tar.gz |
allow use of Irishmen in ireland exile box
-rw-r--r-- | rules.js | 5 | ||||
-rw-r--r-- | rules.ts | 5 |
2 files changed, 4 insertions, 6 deletions
@@ -2890,9 +2890,8 @@ function can_add_troops_beloved_warwick(lord, here) { lord_has_capability(lord, AOW_YORK_BELOVED_WARWICK)); } function can_add_troops_irishmen(lord, here) { - return (can_add_troops(here) && - lord_has_capability(lord, AOW_YORK_IRISHMEN) && - (here === LOC_IRELAND || is_adjacent_irish_sea(here))); + return ((here === LOC_IRELAND || (is_adjacent_irish_sea(here) && can_add_troops(here))) && + lord_has_capability(lord, AOW_YORK_IRISHMEN)); } function count_available_mercenaries() { let n = 0; @@ -3547,9 +3547,8 @@ function can_add_troops_beloved_warwick(lord: Lord, here: Locale) { function can_add_troops_irishmen(lord: Lord, here: Locale) { return ( - can_add_troops(here) && - lord_has_capability(lord, AOW_YORK_IRISHMEN) && - (here === LOC_IRELAND || is_adjacent_irish_sea(here)) + (here === LOC_IRELAND || (is_adjacent_irish_sea(here) && can_add_troops(here))) && + lord_has_capability(lord, AOW_YORK_IRISHMEN) ) } |