diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-09-13 12:20:49 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-09-13 12:20:49 +0200 |
commit | b8aa47d94217df96ecf279151eca7b24d5206e77 (patch) | |
tree | d77ddf0f656e9cec117669e8f3eca14005d61e91 | |
parent | 9dcbe0df6742ab75c0b99f7a55718ffe78d1a315 (diff) | |
download | rommel-in-the-desert-b8aa47d94217df96ecf279151eca7b24d5206e77.tar.gz |
Show disrupted units as already fired when pursuit firing.
-rw-r--r-- | play.js | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -927,7 +927,7 @@ function update_battle_line(hex, line, test) { e.classList.toggle("selected", is_unit_selected(u)) e.classList.toggle("action", is_unit_action(u) || is_unit_hit_action(u)) e.classList.toggle("hit", is_unit_hit_action(u)) - e.classList.toggle("fired", is_unit_fired(u)) + e.classList.toggle("fired", is_unit_fired(u) || is_unit_disrupted(u)) } else { if (line.contains(e)) line.removeChild(e) @@ -995,7 +995,6 @@ function update_pursuit() { ui.pursuit_header.textContent = "Pursuit Fire at " + hex_name[view.pursuit] ui.pursuit_message.textContent = view.flash if (player === ALLIED) { - let slowest = update_battle_line(view.pursuit, ui.pursuit_line_1, u => is_axis_unit(u)) update_battle_line(view.pursuit, ui.pursuit_line_2, u => is_allied_unit(u)) } else { |