diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-12-10 18:21:08 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-12-10 18:21:08 +0100 |
commit | 35c925531b670275801c7d7057fb3b5c46985c92 (patch) | |
tree | 7164f9359c35c045049758110a095c186eea0744 /rules.js | |
parent | f7f10fb376e1019b2c49d6e1fac1b35031bf00b3 (diff) | |
download | maria-35c925531b670275801c7d7057fb3b5c46985c92.tar.gz |
Eliminate subordinate general in mixed stacks if too many hits.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -4113,13 +4113,15 @@ function goto_retreat() { let loser = get_loser() + let xfer = is_mixed_stack(loser) ? 0 : 1 + // no more fighting for the loser remove_stack_from_combat(loser) // apply hits for (let i = game.selected.length - 1; i >= 0 && hits > 0; --i) { let p = game.selected[i] - while (game.troops[p] > 1 && hits > 0) { + while (game.troops[p] > xfer && hits > 0) { lost[piece_power[p]]++ --game.troops[p] --hits |