summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-10-20 17:57:54 +0200
committerTor Andersson <tor@ccxvii.net>2024-10-20 17:58:06 +0200
commit16d46586002a0b72c3ff7be88f0e103ed014a74c (patch)
tree210881bf8cad58efbf054343126961740cf36487
parent9c5ae9ff507e178b741089b122438c93035a19ad (diff)
downloadtime-of-crisis-16d46586002a0b72c3ff7be88f0e103ed014a74c.tar.gz
Shapur I effect should only be active if targeting Sassanids.
-rw-r--r--rules.js4
1 files 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
}