summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-11-17 18:24:51 +0100
committerTor Andersson <tor@ccxvii.net>2023-11-17 18:24:51 +0100
commit9e4fce1e35923afa8c2d9e887f4626f67e51a0b2 (patch)
treeb3b500319b570c3c7cb79a59cd77a5383d8ee4ed
parentb4ad5080511b1098cc8e1a1bdd42e7fe4976dccb (diff)
downloadtime-of-crisis-9e4fce1e35923afa8c2d9e887f4626f67e51a0b2.tar.gz
Deselect eliminated militia post battle.
-rw-r--r--rules.js3
1 files changed, 3 insertions, 0 deletions
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)