summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorteisuru <31881306+teisuru@users.noreply.github.com>2024-12-11 09:46:29 +0100
committerTor Andersson <tor@ccxvii.net>2024-12-17 19:13:06 +0100
commit3d1cd8b9569b3257938deccd64f931fc61fbde7a (patch)
treeaefc11416240f94e8a8e58191673b0926ca284ee /rules.js
parent72595561e3c14688b285e59511aecb50b47e9f0d (diff)
downloadplantagenet-3d1cd8b9569b3257938deccd64f931fc61fbde7a.tar.gz
fix for levying lord where another lord already isHEADmaster
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 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);
}