summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-08-22 22:02:08 +0200
committerTor Andersson <tor@ccxvii.net>2024-08-22 22:03:02 +0200
commitee3491dfa8d5d5f0f92b28ba26f9b36d3573e38f (patch)
tree68828c019a056f16dc82444163809043a30ef77c
parentd6c54ad560b028e8ba581a58ac85b6a96468387c (diff)
downloadwashingtons-war-ee3491dfa8d5d5f0f92b28ba26f9b36d3573e38f.tar.gz
Fix battle tie breaker if America is the attacker.
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index f972387..094fc8a 100644
--- a/rules.js
+++ b/rules.js
@@ -2976,7 +2976,7 @@ function resolve_battle() {
if (game.active === P_BRITAIN)
victor = b_roll + b_drm >= a_roll + a_drm ? P_BRITAIN : P_AMERICA
else
- victor = b_roll + b_drm >= a_roll + a_drm ? P_BRITAIN : P_AMERICA
+ victor = a_roll + a_drm >= b_roll + b_drm ? P_AMERICA : P_BRITAIN
let a_lost_cu, b_lost_cu
if (victor === P_BRITAIN) {