summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 316d2ac..686dcdb 100644
--- a/rules.js
+++ b/rules.js
@@ -1591,6 +1591,10 @@ function search_own_supply_line_rec(path, here, ssrc, sline, sdist) {
let side = to_side(here, next, s)
+ // must move closer (because we only search supply line for withdrawal purposes)
+ if (sdist[next] > sdist[here] && side !== BARDIA_FT_CAPUZZO)
+ continue
+
// must follow supply line
if (sline[side] === 0)
continue