summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-08-21 01:25:42 +0200
committerTor Andersson <tor@ccxvii.net>2024-08-21 01:25:42 +0200
commitab77b0db66ee1583fe86d62eff337665a40b08aa (patch)
treefbc888973073d8b8c9a826544778d20a5bf588e9
parenteb4213121a84a8002d3ae914caec91040bb323cb (diff)
downloadwashingtons-war-ab77b0db66ee1583fe86d62eff337665a40b08aa.tar.gz
fix overrun + disperse congress
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 95c0165..25ac539 100644
--- a/rules.js
+++ b/rules.js
@@ -2202,7 +2202,7 @@ function disperse_and_overrun_after_move() {
capture_enemy_general(to)
if (cu >= 4 && ecu === 1 && !egen)
overrun(to)
- if (game.active === P_BRITAIN && game.congress === to && ecu === 0)
+ if (game.active === P_BRITAIN && game.congress === to && count_enemy_cu(to) === 0)
disperse_continental_congress()
}
}