summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 5afbba0..942a1df 100644
--- a/rules.js
+++ b/rules.js
@@ -2416,15 +2416,14 @@ function remove_stack_from_combat(s) {
}
function goto_retreat() {
- let hits = Math.abs(game.count)
+ let lost = Math.abs(game.count)
+ let hits = lost
let loser = get_loser()
// no more fighting for the loser
remove_stack_from_combat(loser)
- log("P" + get_supreme_commander(loser) + " lost " + hits + " troops.")
-
// apply hits
for (let i = game.selected.length - 1; i >= 0 && hits > 0; --i) {
let p = game.selected[i]
@@ -2442,6 +2441,8 @@ function goto_retreat() {
}
}
+ log("P" + get_supreme_commander(loser) + " lost " + (lost-hits) + " troops")
+
resume_retreat()
}