diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-12-29 22:21:59 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:38 +0100 |
commit | f261d5350ce4eda5899893cb7f23833fc7d60db8 (patch) | |
tree | 485a7c87d0f24919a01ed9b3ab5ef11eae9d08bc | |
parent | 3326a0f4d94439bd906071d83f4a85942c7774ec (diff) | |
download | nevsky-f261d5350ce4eda5899893cb7f23833fc7d60db8.tar.gz |
Limit lord melee strikes in Storm to 6 per lord.
-rw-r--r-- | rules.js | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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) { |