summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 2b6bd72..3c06ac6 100644
--- a/rules.js
+++ b/rules.js
@@ -2156,7 +2156,7 @@ function can_unit_withdraw(who) {
search_own_supply_line(from, ssrc, sline, sdist)
for_each_adjacent_hex(from, to => {
let side = to_side_id(from, to)
- if (side_limit[side] > 0 && !has_enemy_unit(to))
+ if (side_limit[side] > 0 && !has_undisrupted_enemy_unit(to))
if (own_supply_line[side] && is_move_closer(sdist, from, to, side))
result = true
})