summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 4b08c55..d2f00c2 100644
--- a/rules.js
+++ b/rules.js
@@ -8859,6 +8859,11 @@ function rout_unit(lord, type) {
}
}
+function remove_serf(lord) {
+ add_lord_forces(lord, SERFS, -1)
+ game.pieces.smerdi++
+}
+
function use_warrior_monks(lord, type) {
if (type === KNIGHTS) {
let bit = 1 << lord
@@ -8925,9 +8930,12 @@ function action_assign_hits(lord, type) {
rout_unit(lord, type)
}
}
- } else {
+ } else if (type !== SERFS) {
logi(`${FORCE_TYPE_NAME[type]} unprotected`)
rout_unit(lord, type)
+ } else {
+ logi(`${FORCE_TYPE_NAME[type]} removed`)
+ remove_serf(lord, type)
}
if (game.battle.xhits)
@@ -9504,8 +9512,6 @@ function action_losses(lord, type) {
} else {
logi(`${FORCE_TYPE_NAME[type]} ${range(target)}: ${HIT[die]}`)
add_lord_routed_forces(lord, type, -1)
- if (type === SERFS)
- game.pieces.smerdi++
}
resume_battle_losses()