summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-24 00:46:56 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:39 +0100
commit696e8f9f3071a6ba480f101bdaf49149bd80dbed (patch)
tree3cf21824ec33ee95d6a59f17de92b46a98bd9d00 /rules.js
parentc13709696a70e4ff501f629a07365aee427019b3 (diff)
downloadnevsky-696e8f9f3071a6ba480f101bdaf49149bd80dbed.tar.gz
"None" when no strikes in Storm.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 3604885..6caaf49 100644
--- a/rules.js
+++ b/rules.js
@@ -8258,7 +8258,12 @@ function goto_strike() {
game.battle.strikers = [ A2 ]
else
game.battle.strikers = [ D2 ]
- goto_strike_total_hits()
+ if (has_no_strikers_and_strike_targets()) {
+ log("None.")
+ goto_next_strike()
+ } else {
+ goto_strike_total_hits()
+ }
} else {
if (has_no_strikers_and_strike_targets())
log("None.")