From 16d46586002a0b72c3ff7be88f0e103ed014a74c Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 20 Oct 2024 17:57:54 +0200 Subject: Shapur I effect should only be active if targeting Sassanids. --- rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index 02152db..a9515d3 100644 --- a/rules.js +++ b/rules.js @@ -4166,7 +4166,7 @@ function roll_spiculum_dice() { game.combat.castra_used = 1 n -= 1 } - if (game.combat.type === "barbarians" && get_barbarian_location(SHAPUR) === game.where) { + if (game.combat.type === "barbarians" && game.combat.target === SASSANIDS && get_barbarian_location(SHAPUR) === game.where) { log("Shapur I reduced 1 hit.") game.combat.castra_used = 1 n -= 1 @@ -4190,7 +4190,7 @@ function roll_attacker_dice() { log("Castra reduced 1 hit.") n -= 1 } - if (game.combat.type === "barbarians" && get_barbarian_location(SHAPUR) === game.where) { + if (game.combat.type === "barbarians" && game.combat.target === SASSANIDS && get_barbarian_location(SHAPUR) === game.where) { log("Shapur I reduced 1 hit.") n -= 1 } -- cgit v1.2.3