fix(rules): correct P1 PF1e conformance bugs (area saves, concentration, prone, slots, helpless, nauseated)

This commit is contained in:
2026-09-10 20:52:28 +02:00
parent 1ca5aed758
commit 5afe495c4a
15 changed files with 790 additions and 86 deletions
+4 -3
View File
@@ -164,9 +164,10 @@ def test_melee_vs_helpless_target_gains_plus4() -> None:
a, t = eng._states
_add_condition(t, "helpless")
result = eng.resolve_attack(a, t, a.combatant.attacks[0])
# roll 10 + bonus 5 + 4 (helpless melee) = 19; AC = flat-footed 10 (Dex denied).
# roll 10 + bonus 5 + 4 (helpless melee) = 19; AC = flat-footed 10 minus
# the Dex-0 penalty (helpless target has effective Dexterity 0: -5).
assert result.total == 19
assert result.ac == 10
assert result.ac == 5
assert result.hit is True
@@ -180,7 +181,7 @@ def test_melee_vs_helpless_plus4_applies_to_crit_confirmation() -> None:
a, t = eng._states
_add_condition(t, "helpless")
result = eng.resolve_attack(a, t, a.combatant.attacks[0])
# Confirm 10 + 5 + 4 = 19 >= 10 -> crit.
# Confirm 10 + 5 + 4 = 19 >= 5 (flat-footed 10 - 5 Dex-0) -> crit.
assert result.crit is True
assert result.damage == 8