summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-07-13 00:23:10 +0200
committerTor Andersson <tor@ccxvii.net>2024-07-13 00:23:10 +0200
commitd8eb06fb7bcf7b6e2218a92aa9db1a5aef533faa (patch)
treefa6fa0662e108f6ae1b10ab27dd88745ae043f4f
parent596272f6fd44691ed1c893dcaf19c5498e389699 (diff)
downloadplantagenet-d8eb06fb7bcf7b6e2218a92aa9db1a5aef533faa.tar.gz
fix Sun in Splendour
-rw-r--r--rules.js4
-rw-r--r--rules.ts4
2 files changed, 4 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index d85a09f..d006bfb 100644
--- a/rules.js
+++ b/rules.js
@@ -11018,7 +11018,7 @@ states.sun_in_splendour = {
prompt() {
view.prompt = "Sun in Splendour: Muster Edward IV at any friendly locale with no enemy lord.";
for (let loc of all_locales)
- if (is_friendly_locale(loc))
+ if (is_friendly_locale(loc) && !has_enemy_lord(loc))
gen_action_locale(loc);
},
locale(loc) {
@@ -11037,7 +11037,7 @@ states.sun_in_splendour_now = {
prompt() {
view.prompt = "Sun in Splendour: Muster Edward IV at any friendly locale with no enemy lord.";
for (let loc of all_locales)
- if (is_friendly_locale(loc))
+ if (is_friendly_locale(loc) && !has_enemy_lord(loc))
gen_action_locale(loc);
},
locale(loc) {
diff --git a/rules.ts b/rules.ts
index 538d12c..d34b9a2 100644
--- a/rules.ts
+++ b/rules.ts
@@ -12691,7 +12691,7 @@ states.sun_in_splendour = {
prompt() {
view.prompt = "Sun in Splendour: Muster Edward IV at any friendly locale with no enemy lord."
for (let loc of all_locales)
- if (is_friendly_locale(loc))
+ if (is_friendly_locale(loc) && !has_enemy_lord(loc))
gen_action_locale(loc)
},
locale(loc) {
@@ -12714,7 +12714,7 @@ states.sun_in_splendour_now = {
prompt() {
view.prompt = "Sun in Splendour: Muster Edward IV at any friendly locale with no enemy lord."
for (let loc of all_locales)
- if (is_friendly_locale(loc))
+ if (is_friendly_locale(loc) && !has_enemy_lord(loc))
gen_action_locale(loc)
},
locale(loc) {