summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js12
-rw-r--r--rules.ts12
2 files changed, 12 insertions, 12 deletions
diff --git a/rules.js b/rules.js
index dfdceec..0f233ec 100644
--- a/rules.js
+++ b/rules.js
@@ -2505,7 +2505,7 @@ function has_locale_to_muster(lord) {
// Else, can muster at any friendly seat (of a friendly lord who is also in play)
for (let other of all_friendly_lords()) {
let other_seat = get_lord_seat(other);
- if (is_lord_in_play(other) && is_friendly_locale(other_seat))
+ if (is_lord_in_play(other) && is_friendly_locale(other_seat) && !has_enemy_lord(other_seat))
if (is_move_allowed(lord, other_seat))
return true;
}
@@ -2830,11 +2830,11 @@ states.levy_lord_at_seat = {
found = true;
}
if (!found) {
- for (let lord of all_friendly_lords()) {
- let seat = get_lord_seat(lord);
- if ((is_lord_on_map(lord) || is_lord_on_calendar(lord)) && (is_friendly_locale(seat) && !has_enemy_lord(seat))) {
- if (is_move_allowed(game.who, seat))
- gen_action_locale(seat);
+ for (let other of all_friendly_lords()) {
+ let other_seat = get_lord_seat(other);
+ if (is_lord_in_play(other) && is_friendly_locale(other_seat) && !has_enemy_lord(other_seat)) {
+ if (is_move_allowed(game.who, other_seat))
+ gen_action_locale(other_seat);
}
}
}
diff --git a/rules.ts b/rules.ts
index 2aae7f7..c84788b 100644
--- a/rules.ts
+++ b/rules.ts
@@ -3099,7 +3099,7 @@ function has_locale_to_muster(lord: Lord) {
// Else, can muster at any friendly seat (of a friendly lord who is also in play)
for (let other of all_friendly_lords()) {
let other_seat = get_lord_seat(other)
- if (is_lord_in_play(other) && is_friendly_locale(other_seat))
+ if (is_lord_in_play(other) && is_friendly_locale(other_seat) && !has_enemy_lord(other_seat))
if (is_move_allowed(lord, other_seat))
return true
}
@@ -3476,11 +3476,11 @@ states.levy_lord_at_seat = {
}
if (!found) {
- for (let lord of all_friendly_lords()) {
- let seat = get_lord_seat(lord)
- if ((is_lord_on_map(lord) || is_lord_on_calendar(lord)) && (is_friendly_locale(seat) && !has_enemy_lord(seat))) {
- if (is_move_allowed(game.who, seat))
- gen_action_locale(seat)
+ for (let other of all_friendly_lords()) {
+ let other_seat = get_lord_seat(other)
+ if (is_lord_in_play(other) && is_friendly_locale(other_seat) && !has_enemy_lord(other_seat)) {
+ if (is_move_allowed(game.who, other_seat))
+ gen_action_locale(other_seat)
}
}
}