From f261d5350ce4eda5899893cb7f23833fc7d60db8 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 29 Dec 2022 22:21:59 +0100 Subject: Limit lord melee strikes in Storm to 6 per lord. --- rules.js | 13 +++++++++++-- 1 file 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) { -- cgit v1.2.3