fix(rules): correct P2/P3 PF1e conformance bugs (flanking, touch, blinded, disabled, death, maneuvers, DR, sneak)

This commit is contained in:
2026-09-10 21:45:50 +02:00
parent 5afe495c4a
commit 9aee4f6f6b
15 changed files with 934 additions and 134 deletions
+4 -2
View File
@@ -38,9 +38,11 @@ def test_blinded_attacker_misses_on_low_d100() -> None:
a, t = eng._states
_add_condition(a, "blinded")
result = eng.resolve_attack(a, t, a.combatant.attacks[0])
# roll 15 + bonus 5 - 2 (blinded) = 18 beats AC 10, then d100 30 <= 50 misses.
# roll 15 + bonus 5 = 20 beats AC 10 (B10 conformance: blinded carries NO
# flat attack penalty — the 50% total-concealment miss below is the RAW
# penalty), then d100 30 <= 50 misses.
assert result.hit is True
assert result.total == 18
assert result.total == 20
assert result.damage == 0
assert t.hp == 100
assert any("attacker blinded" in line and "misses" in line for line in eng._transcript)