summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-12-29 22:21:59 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commitf261d5350ce4eda5899893cb7f23833fc7d60db8 (patch)
tree485a7c87d0f24919a01ed9b3ab5ef11eae9d08bc /rules.js
parent3326a0f4d94439bd906071d83f4a85942c7774ec (diff)
downloadnevsky-f261d5350ce4eda5899893cb7f23833fc7d60db8.tar.gz
Limit lord melee strikes in Storm to 6 per lord.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 3e5edc8..5c0d16f 100644
--- a/rules.js
+++ b/rules.js
@@ -5841,8 +5841,17 @@ function goto_strike_storm() {
count_garrison_hits(game.battle.step)
}
- game.battle.h1 = game.battle.ah1[0] + game.battle.ah1[1]
- game.battle.h2 = game.battle.ah2[0] + game.battle.ah2[1]
+ game.battle.h1 = game.battle.ah1[0]
+ game.battle.h2 = game.battle.ah2[0]
+
+ // Max 6 hits per lord in melee (12 since we count half-hits).
+ if (game.battle.step >= 2) {
+ if (game.battle.h1 > 12)
+ game.battle.h1 = 12
+ }
+
+ game.battle.h1 += game.battle.ah1[1]
+ game.battle.h2 += game.battle.ah2[1]
round_hits()
if (game.battle.h1 + game.battle.h2 === 0) {