diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-08-28 23:54:01 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-08-28 23:54:01 +0200 |
commit | 9dcbe0df6742ab75c0b99f7a55718ffe78d1a315 (patch) | |
tree | a3d182574b04fae75cd18788b7cd883be7992a76 | |
parent | 208961dc6773cc6803f98fddd0a6a9d474694156 (diff) | |
download | rommel-in-the-desert-9dcbe0df6742ab75c0b99f7a55718ffe78d1a315.tar.gz |
fix can_unit_withdraw check.
Can withdraw the first hex to disrupted enemy units!
-rw-r--r-- | rules.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 }) |