summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-09-28 11:25:54 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-17 13:11:27 +0100
commitf4c1e6ad41abcb0f03c39c8c01f191d469d6600f (patch)
tree740019073d27d2af847a1cd69e4a1c22806d72ef
parent026f77c628a8e84c1f889f6e8fc3630361a28fab (diff)
downloadrommel-in-the-desert-f4c1e6ad41abcb0f03c39c8c01f191d469d6600f.tar.gz
Exception: Fortress battles are not mandatory during blitz combat.
-rw-r--r--rules.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/rules.js b/rules.js
index a712237..982081c 100644
--- a/rules.js
+++ b/rules.js
@@ -4604,12 +4604,15 @@ function goto_combat_phase() {
return end_combat_phase()
}
- if (is_mandatory_combat(BARDIA))
- set_add(game.new_battles, BARDIA)
- if (is_mandatory_combat(BENGHAZI))
- set_add(game.new_battles, BENGHAZI)
- if (is_mandatory_combat(TOBRUK))
- set_add(game.new_battles, TOBRUK)
+ // exception - not mandatory during blitz combat
+ if (game.turn_option !== 'second blitz') {
+ if (is_mandatory_combat(BARDIA))
+ set_add(game.new_battles, BARDIA)
+ if (is_mandatory_combat(BENGHAZI))
+ set_add(game.new_battles, BENGHAZI)
+ if (is_mandatory_combat(TOBRUK))
+ set_add(game.new_battles, TOBRUK)
+ }
for (let x of game.new_battles)
set_add(game.active_battles, x)