diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-11-17 18:24:51 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-11-17 18:24:51 +0100 |
commit | 9e4fce1e35923afa8c2d9e887f4626f67e51a0b2 (patch) | |
tree | b3b500319b570c3c7cb79a59cd77a5383d8ee4ed /rules.js | |
parent | b4ad5080511b1098cc8e1a1bdd42e7fe4976dccb (diff) | |
download | time-of-crisis-9e4fce1e35923afa8c2d9e887f4626f67e51a0b2.tar.gz |
Deselect eliminated militia post battle.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |