From 0cf8ffac378f451b2230f8466bf962260ad43de4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 21 Mar 2024 15:36:51 +0100 Subject: Fix bug when slowest unit is fastest possible. --- rules.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rules.js b/rules.js index f6f40ce..f8689d2 100644 --- a/rules.js +++ b/rules.js @@ -5568,7 +5568,7 @@ function end_probe_hits() { // routing moves function slowest_enemy_unit_speed(where) { - let r = 4 + let r = 5 for_each_enemy_unit_in_hex(where, u => { let s = unit_speed[u] if (s < r) @@ -5578,7 +5578,7 @@ function slowest_enemy_unit_speed(where) { } function slowest_undisrupted_enemy_unit_speed(where) { - let r = 4 + let r = 5 for_each_undisrupted_enemy_unit_in_hex(where, u => { let s = unit_speed[u] if (s < r) @@ -5589,7 +5589,7 @@ function slowest_undisrupted_enemy_unit_speed(where) { function slowest_undisrupted_friendly_unit(where) { let who = -1 - let r = 4 + let r = 5 for_each_undisrupted_friendly_unit_in_hex(where, u => { let s = unit_speed[u] if (s < r) { -- cgit v1.2.3