diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-01-02 00:45:43 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:38 +0100 |
commit | 5a4c144745502038db5f64df79456a697794418d (patch) | |
tree | a9900f600089bf541bb123edad7fbcb348ab1ca9 | |
parent | 34867a9cf91469f92b57ec9ac8c1383215d93ea2 (diff) | |
download | nevsky-5a4c144745502038db5f64df79456a697794418d.tar.gz |
Fix invalid hit group when lone garrison.
-rw-r--r-- | rules.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |