From 9e4fce1e35923afa8c2d9e887f4626f67e51a0b2 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 17 Nov 2023 18:24:51 +0100 Subject: Deselect eliminated militia post battle. --- rules.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rules.js b/rules.js index 4b1a182..34f4523 100644 --- a/rules.js +++ b/rules.js @@ -4651,6 +4651,9 @@ function goto_post_combat() { // Deselect eliminated general... if (game.selected_general >= 0 && get_general_location(game.selected_general) === AVAILABLE) game.selected_general = -1 + // Deselect eliminated militia... + if (game.selected_militia >= 0 && !has_militia(game.selected_militia)) + game.selected_militia = -1 // Military Emperor check for death in battle if (game.emperor === ARMY + game.combat.attacker) -- cgit v1.2.3