diff options
-rw-r--r-- | rules.js | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -2357,12 +2357,15 @@ states.group_move_from = { prompt() { view.prompt = `Group Move: Select hex to move from.` gen_rommel_move() - for (let x = first_hex; x <= last_hex; ++x) { + for (let x of all_hexes) { if (x === game.from1 && !game.to1) continue if (has_undisrupted_friendly_unit(x)) gen_action_hex(x) } + if (game.turn_option !== 'pass') + if (has_friendly_unit_in_raw_hex(friendly_queue())) + gen_action_hex(friendly_queue()) }, rommel() { push_undo() @@ -2377,6 +2380,14 @@ states.group_move_from = { game.from1 = x else game.from2 = x + + if (x === friendly_queue()) { + for_each_friendly_unit_in_hex(friendly_queue(), u => { + set_unit_hex(u, friendly_base()) + set_unit_moved(u) + }) + } + if (game.turn_option === 'offensive' && !game.from2) game.state = 'select_moves' else |