summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-02 00:45:43 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commit5a4c144745502038db5f64df79456a697794418d (patch)
treea9900f600089bf541bb123edad7fbcb348ab1ca9 /rules.js
parent34867a9cf91469f92b57ec9ac8c1383215d93ea2 (diff)
downloadnevsky-5a4c144745502038db5f64df79456a697794418d.tar.gz
Fix invalid hit group when lone garrison.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js5
1 files changed, 4 insertions, 1 deletions
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)