summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-02-08 13:20:48 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:40 +0100
commit1c296f4fc1fd5644dd70fd256e9fe1cb0edde79d (patch)
treed40ce9bd4eec71dd96e6df2399f711be84d0d179 /rules.js
parentb767739df595f05185b5e14a8c223fa55ef07df9 (diff)
downloadnevsky-1c296f4fc1fd5644dd70fd256e9fe1cb0edde79d.tar.gz
Fix "is sally" check when rolling for Raven's Rock.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index b3dd690..d729f3d 100644
--- a/rules.js
+++ b/rules.js
@@ -8682,10 +8682,11 @@ function roll_for_siegeworks() {
}
}
+
function roll_for_ravens_rock() {
let prot = 2
// Trebuchets only count vs Raven's Rock in Sally or Relief Sally battles
- if (count_siege_markers(game.battle.where) > 0) {
+ if (game.battle.sally || game.battle.relief) {
if (enemy_has_trebuchets()) {
logi(`C${AOW_TEUTONIC_TREBUCHETS}.`)
prot--