summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-07-26 18:08:15 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-17 13:11:26 +0100
commitdca39384cf3461a8db7bf3ae9f21a58a761064b1 (patch)
tree8c4522cdf44986192a210266a19ef4eac616cdb6
parent0ec21335f4a5b7c77c1c61c1944f3567cbdfa66c (diff)
downloadrommel-in-the-desert-dca39384cf3461a8db7bf3ae9f21a58a761064b1.tar.gz
blitz turn
-rw-r--r--rules.js14
1 files 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 ===