From 5a4c144745502038db5f64df79456a697794418d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 2 Jan 2023 00:45:43 +0100 Subject: Fix invalid hit group when lone garrison. --- rules.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rules.js b/rules.js index c6858e3..cfea486 100644 --- a/rules.js +++ b/rules.js @@ -6254,7 +6254,10 @@ function goto_strike_storm() { log(`L${game.battle.array[A2]} struck L${game.battle.array[D2]}.`) } game.battle.sg = [ A2 ] - game.battle.hg = [ D2 ] + if (game.battle.array[D2] !== NOBODY) + game.battle.hg = [ D2 ] + else + game.battle.hg = [] } else { if (game.battle.garrison) { if (game.battle.array[D2] === NOBODY) -- cgit v1.2.3