From e1a87e1f0db739f8621de271119a59528a7a18ec Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 24 May 2024 01:57:07 +0200 Subject: fix exact elimination --- rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rules.js') 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.") -- cgit v1.2.3