diff options
author | teisuru <31881306+teisuru@users.noreply.github.com> | 2024-02-15 12:07:03 +0100 |
---|---|---|
committer | teisuru <31881306+teisuru@users.noreply.github.com> | 2024-02-15 12:07:03 +0100 |
commit | 0678cfbea57eec1e154a2cfb1534bd1df116ccc3 (patch) | |
tree | 98bb09f9b75a4acf149ec2fb06ed7a17604d6657 /rules.js | |
parent | 614fc77621f4a1fd35f1f1fdbc1c323ae4464abc (diff) | |
download | plantagenet-0678cfbea57eec1e154a2cfb1534bd1df116ccc3.tar.gz |
fix muster lord at seat
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -5156,7 +5156,7 @@ states.muster_lord_at_seat = { if (!found) { for (let lord = first_friendly_lord; lord <= last_friendly_lord; lord++) { - if (is_lord_on_map(lord) && is_friendly_locale(data.lords[lord].seat)) { + if ((is_lord_on_map(lord) || is_lord_on_calendar(lord)) && is_friendly_locale(data.lords[lord].seat)) { gen_action_locale(data.lords[lord].seat) } } @@ -10628,7 +10628,9 @@ function disband_lord(lord, permanently = false) { for (let x = 0; x < FORCE_TYPE_COUNT; ++x) { set_lord_forces(lord, x, 0) - set_lord_routed_forces(lord, x, 0) + if (get_lord_routed_forces(lord, x) > 0) { + set_lord_routed_forces(lord, x, 0) + } } set_lord_moved(lord, 0) |