summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-10-25 11:50:20 +0200
committerTor Andersson <tor@ccxvii.net>2024-10-25 11:50:20 +0200
commit6f3c3093e1ae354c397f8a8eb47d4b7a1e9ef657 (patch)
treee26f87b713e4a521aaf16b37f43462c8c7015fb4 /rules.js
parent2da0d09e5718f8099b1e42ebdbabf31f68e7a4b0 (diff)
downloadmaria-6f3c3093e1ae354c397f8a8eb47d4b7a1e9ef657.tar.gz
fix battle vp when eliminating generals with < 3 troops
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 22a04b9..998ceb2 100644
--- a/rules.js
+++ b/rules.js
@@ -3610,7 +3610,7 @@ function lose_vp(pow, n) {
function finish_combat() {
let n = game.lost_troops / 3 | 0
- if (n < 0 && game.lost_generals > 0)
+ if (n === 0 && game.lost_generals > 0)
n = 1
if (n > 0) {