summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-11-21 12:31:31 +0100
committerTor Andersson <tor@ccxvii.net>2023-11-21 12:44:46 +0100
commitc24907f947cdd6cb43215037d9ea8f6f2bada1d8 (patch)
tree2068dc85b56b90045dced9131ac9cf8606277f66 /rules.js
parent9e4fce1e35923afa8c2d9e887f4626f67e51a0b2 (diff)
downloadtime-of-crisis-c24907f947cdd6cb43215037d9ea8f6f2bada1d8.tar.gz
Fix Militia + Cavalry rules case. Add missing page to expansion book.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 34f4523..567a741 100644
--- a/rules.js
+++ b/rules.js
@@ -4623,6 +4623,11 @@ function goto_combat_victory_attacker() {
remove_general_castra(game.combat.target)
}
+ // Defending Militia must retreat (eliminated)
+ if ((game.combat.type === "militia" || game.combat.type === "general") && has_militia(game.where)) {
+ eliminate_militia(game.where)
+ }
+
if (game.combat.attacker >= 0 && can_enter_capital(game.where))
game.state = "advance_after_combat"
else