summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorteisuru <31881306+teisuru@users.noreply.github.com>2024-02-18 03:39:24 +0100
committerteisuru <31881306+teisuru@users.noreply.github.com>2024-02-18 03:39:24 +0100
commitbb276c4439083834ada25cd9d0bfacf459c4e3fc (patch)
tree5e3341bb3472f7246252e13b723fecfc8c75da59 /rules.js
parent6af263a7df05a6928b48480dc336078159a26640 (diff)
downloadplantagenet-bb276c4439083834ada25cd9d0bfacf459c4e3fc.tar.gz
hotfix warden
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 98b8bc1..5d7283e 100644
--- a/rules.js
+++ b/rules.js
@@ -8261,8 +8261,11 @@ states.warden_of_the_marches = {
else {
set_lord_forces(lord, RETINUE, 1)
}
- if (get_lord_routed_forces(lord, x) > 0) {
- set_lord_routed_forces(lord, x, 0)
+ for (let x = 0; x < FORCE_TYPE_COUNT; ++x) {
+ set_lord_forces(lord, x, 0)
+ if (get_lord_routed_forces(lord, x) > 0) {
+ set_lord_routed_forces(lord, x, 0)
+ }
}
for_each_vassal_with_lord(lord, v => {
if (set_has(game.battle.routed_vassals, v)) {