summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts16
1 files changed, 11 insertions, 5 deletions
diff --git a/rules.ts b/rules.ts
index 6209241..f296362 100644
--- a/rules.ts
+++ b/rules.ts
@@ -7729,17 +7729,23 @@ function action_spend_valour(lord: Lord, force: Force, vassal: Vassal = NOVASSAL
game.state = "assign_hits"
game.battle.reroll = 0
+ // always true, unless Yeomen are triggered
+ if (get_lord_remaining_valour(lord) > 0) {
+ let protection = get_modified_protection(lord, force)
+ spend_valour(lord)
+ if (!assign_hit_roll("Reroll", protection, ">>")) {
+ unrout_unit(lord, force, vassal)
+ game.vassal = NOVASSAL
+ return
+ }
+ }
+
if (is_yeomen_of_the_crown_triggered(lord, force)) {
logcap(AOW_LANCASTER_YEOMEN_OF_THE_CROWN)
unrout_unit(lord, RETINUE)
rout_unit(lord, MEN_AT_ARMS)
- return
}
- let protection = get_modified_protection(lord, force)
- spend_valour(lord)
- if (!assign_hit_roll("Reroll", protection, ">>"))
- unrout_unit(lord, force, vassal)
game.vassal = NOVASSAL
}