From dca39384cf3461a8db7bf3ae9f21a58a761064b1 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 26 Jul 2022 18:08:15 +0200 Subject: blitz turn --- rules.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/rules.js b/rules.js index 274ca4f..429a919 100644 --- a/rules.js +++ b/rules.js @@ -42,7 +42,7 @@ const last_axis_unit = first_allied_unit - 1 const last_allied_unit = units.length - 1 var first_friendly_unit, last_friendly_unit -var first_enemy_unit, last_friendly_unit +var first_enemy_unit, last_enemy_unit function update_aliases() { if (game.active === AXIS) { @@ -2587,8 +2587,16 @@ states.select_battle = { } function end_combat_phase() { - // TODO: blitz - goto_final_supply_check() + if (game.turn_option === 'blitz') { + log_h2(`Blitz Turn`) + if (game.rommel) + game.rommel = 3 + set_clear(game.fired) + game.turn_option = 'basic' + goto_move_phase() + } else { + goto_final_supply_check() + } } // === BATTLES === -- cgit v1.2.3