fix(rules): firing into melee exemption measured target-to-nearest-ally, not attacker-to-target (SRD Shooting into a Melee)

This commit is contained in:
2026-09-16 21:24:48 +02:00
parent e6f7b1988b
commit e0bf484394
3 changed files with 53 additions and 18 deletions
+1 -1
View File
@@ -816,7 +816,7 @@ def test_ranged_attack_ignores_flanking() -> None:
"initiative: aly d20=9+0=9",
"initiative: tgt d20=8+0=8",
"round 1 tgt: AoO vs arc d20=15+2=17 AC 13 -> HIT 3 damage (6->3)",
"round 1 arc: short bow vs tgt d20=12+2=14 AC 15 -> MISS",
"round 1 arc: short bow vs tgt d20=12+2-4(melee)=10 AC 15 -> MISS",
"round 1 aly: short sword vs tgt d20=10+0=10 AC 15 -> MISS",
"round 1 tgt: short sword vs arc d20=5+2=7 AC 13 -> MISS",
"battle over: draw after 1 rounds",