From 3d1cd8b9569b3257938deccd64f931fc61fbde7a Mon Sep 17 00:00:00 2001 From: teisuru <31881306+teisuru@users.noreply.github.com> Date: Wed, 11 Dec 2024 09:46:29 +0100 Subject: fix for levying lord where another lord already is --- rules.js | 2 +- rules.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index 7c04f26..9a10d9b 100644 --- a/rules.js +++ b/rules.js @@ -2822,7 +2822,7 @@ 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)) { + 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); } diff --git a/rules.ts b/rules.ts index 4ad0882..4e2f1b5 100644 --- a/rules.ts +++ b/rules.ts @@ -3466,7 +3466,7 @@ 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)) { + 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) } -- cgit v1.2.3