diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-05-07 10:01:44 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-05-07 10:01:44 +0200 |
commit | d2a86b6d1adca8e9f0efbfd130108da1de791bf2 (patch) | |
tree | 1a6d5a0754d7824e214b112dbf5237de75117ae3 | |
parent | 7ebbda9013876a18e5d06b65dbe301780b371572 (diff) | |
download | plantagenet-d2a86b6d1adca8e9f0efbfd130108da1de791bf2.tar.gz |
fix tudor banners trigger
-rw-r--r-- | rules.js | 5 | ||||
-rw-r--r-- | rules.ts | 5 |
2 files changed, 6 insertions, 4 deletions
@@ -10330,8 +10330,9 @@ states.robins_rebellion = { }; // === EVENT: TUDOR BANNERS === function tudor_banner_eligible() { - if (is_lord_on_map(LORD_HENRY_TUDOR) && !is_lord_on_calendar(LORD_HENRY_TUDOR)) { - for (let next of data.locales[get_lord_locale(LORD_HENRY_TUDOR)].adjacent) { + let here = get_lord_locale(LORD_HENRY_TUDOR); + if (is_stronghold(here) && is_friendly_locale(here)) { + for (let next of data.locales[here].adjacent) { if (can_parley_at(next)) return true; } @@ -11918,8 +11918,9 @@ states.robins_rebellion = { // === EVENT: TUDOR BANNERS === function tudor_banner_eligible() { - if (is_lord_on_map(LORD_HENRY_TUDOR) && !is_lord_on_calendar(LORD_HENRY_TUDOR)) { - for (let next of data.locales[get_lord_locale(LORD_HENRY_TUDOR)].adjacent) { + let here = get_lord_locale(LORD_HENRY_TUDOR) + if (is_stronghold(here) && is_friendly_locale(here)) { + for (let next of data.locales[here].adjacent) { if (can_parley_at(next)) return true } |