diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-02-23 13:23:16 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-02-23 13:23:16 +0100 |
commit | 5f65dc8cbd31212e46288e2f5af92d0451e4f3f8 (patch) | |
tree | 3325a501a6d28526fd02f3dce901ecd0a016e071 /rules.ts | |
parent | 5db0144eab701bbf6d4368686050639e16fb9054 (diff) | |
download | plantagenet-5f65dc8cbd31212e46288e2f5af92d0451e4f3f8.tar.gz |
Add missing case in has_locale_to_muster check.
Diffstat (limited to 'rules.ts')
-rw-r--r-- | rules.ts | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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) } } } |