From 0d65afd2c1b76cf2be31c868f5e6791e864e747b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 3 Sep 2022 15:06:25 +0200 Subject: Fix return to refit path check. --- rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index 8d98a63..303c5ce 100644 --- a/rules.js +++ b/rules.js @@ -3826,7 +3826,7 @@ states.forced_marches = { set_unit_hex(who, to) } } else { - log(`>${die_face_miss[roll]} disrupted at #${to}`) + log(`>${die_face_miss[roll]} disrupted at #${from}`) set_unit_hex(who, from) if (is_unit_disrupted(who)) reduce_unit(who) // was a retreating unit @@ -5711,7 +5711,7 @@ function gen_spending_bps() { // Return for Refit if (from !== base) { - if (can_move_to(base, 63)) + if (path_cost[0][base] < 63) gen_action_hex(friendly_refit()) } -- cgit v1.2.3