diff options
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3191,7 +3191,7 @@ function search_current_move(who, is_retreat) { let speed = unit_speed[who] if (game.turn_option !== 'pass') { if (is_retreat) - search_move_retreat(who, speed + 1 + (rommel1 | rommel2)) + search_move_retreat(from, speed + 1 + (rommel1 | rommel2)) else search_move(from, speed + 1 + (rommel1 | rommel2)) } else { @@ -3295,7 +3295,7 @@ states.move = { // Select Regroup Move 1 if (game.to1) { for_each_hex_and_adjacent_hex(game.from1, from => { - if (!has_enemy_unit(from)) { + if (!has_enemy_unit(from) && from !== game.to1) { let fastest = fastest_undisrupted_and_unmoved_friendly_unit_in_hex(from) if (fastest >= 0) { search_current_move(fastest, false) @@ -3311,7 +3311,7 @@ states.move = { // Select Regroup Move 2 if (game.to1) { for_each_hex_and_adjacent_hex(game.from2, from => { - if (!has_enemy_unit(from)) { + if (!has_enemy_unit(from) && from !== game.to2) { let fastest = fastest_undisrupted_and_unmoved_friendly_unit_in_hex(from) if (fastest >= 0) { search_current_move(fastest, false) |