summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-03 22:51:50 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commit283d27aa4ab5a38f9e4ec037ee5a5db7a11baf86 (patch)
tree2fb908f103c33da67c983d8bd234faba8f387279
parent1a2a3b1ca0f4b2de75ec0b79502adffc15ab6f8e (diff)
downloadnevsky-283d27aa4ab5a38f9e4ec037ee5a5db7a11baf86.tar.gz
Fix proceding to second storming round.
-rw-r--r--rules.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index aff4d6b..332d55f 100644
--- a/rules.js
+++ b/rules.js
@@ -7856,15 +7856,17 @@ function end_battle_round() {
}
game.battle.round ++
+
if (game.battle.storm) {
if (game.battle.round > count_siege_markers(game.battle.where)) {
game.battle.loser = game.battle.attacker
end_battle()
+ return
}
- } else {
- set_active_attacker()
- goto_concede()
}
+
+ set_active_attacker()
+ goto_concede()
}
// === ENDING THE BATTLE ===