From ee3491dfa8d5d5f0f92b28ba26f9b36d3573e38f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 22 Aug 2024 22:02:08 +0200 Subject: Fix battle tie breaker if America is the attacker. --- rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3