diff options
-rw-r--r-- | rules.js | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -1871,7 +1871,7 @@ function can_unit_withdraw(who) { let from = unit_hex(who) for_each_adjacent_hex(from, to => { let side = to_side_id(from, to) - if (!has_enemy_unit(to)) + if (side_limit[side] > 0 && !has_enemy_unit(to)) if (sline[side] && sdist[to] <= sdist[from]) result = true }) @@ -1887,7 +1887,7 @@ function can_unit_disengage_and_withdraw(who) { let from = unit_hex(who) for_each_adjacent_hex(from, to => { let side = to_side_id(from, to) - if (!is_enemy_hexside(side) && !has_undisrupted_enemy_unit(to)) + if (side_limit[side] > 0 && !is_enemy_hexside(side) && !has_undisrupted_enemy_unit(to)) if (sline[side] && sdist[to] <= sdist[from]) result = true }) @@ -1900,7 +1900,7 @@ function can_unit_disengage_and_move(who) { let result = false for_each_adjacent_hex(from, to => { let side = to_side_id(from, to) - if (!is_enemy_hexside(side) && !has_undisrupted_enemy_unit(to)) + if (side_limit[side] > 0 && !is_enemy_hexside(side) && !has_undisrupted_enemy_unit(to)) result = true }) return result @@ -3095,15 +3095,9 @@ states.group_move_from = { prompt() { show_move_commands() view.prompt = `Group Move: Select group to move.` - for (let x of game.group) if (x !== game.from1 || game.to1) gen_action_hex(x) - - if (game.turn_option !== 'pass') { - if (has_friendly_unit_in_raw_hex(friendly_queue())) - gen_action_hex(friendly_queue()) - } }, hex(x) { push_undo() |