summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-24 01:57:07 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-30 21:59:25 +0200
commite1a87e1f0db739f8621de271119a59528a7a18ec (patch)
treede34fcbebe4cbb046cd84fecf828d4473923a09d
parentc56833461f979ce6992552ec2be60c55b6222255 (diff)
downloadfriedrich-e1a87e1f0db739f8621de271119a59528a7a18ec.tar.gz
fix exact elimination
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index b416f5f..f988779 100644
--- a/rules.js
+++ b/rules.js
@@ -2053,7 +2053,7 @@ function goto_retreat() {
}
// remove eliminated generals
- for (let i = game.selected.length - 1; i >= 0 && hits > 0; --i) {
+ for (let i = game.selected.length - 1; i >= 0; --i) {
let p = game.selected[i]
if (game.troops[p] === 0) {
log("P" + p + " eliminated.")