From 1c296f4fc1fd5644dd70fd256e9fe1cb0edde79d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 8 Feb 2023 13:20:48 +0100 Subject: Fix "is sally" check when rolling for Raven's Rock. --- rules.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rules.js') 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-- -- cgit v1.2.3