summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js5
-rw-r--r--rules.ts5
2 files changed, 6 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index 92054b4..a47c92f 100644
--- a/rules.js
+++ b/rules.js
@@ -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;
}
diff --git a/rules.ts b/rules.ts
index e3ea9e2..fdcf5ae 100644
--- a/rules.ts
+++ b/rules.ts
@@ -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
}