fix(rules): exhausted -6 Dex now costs -3 AC and -3 Reflex

This commit is contained in:
2026-09-16 19:20:00 +02:00
parent 317f91a07f
commit bfe0b767a9
2 changed files with 16 additions and 1 deletions
+12
View File
@@ -7,6 +7,7 @@ from pf1e_simulator.conditions import (
BLINDED,
DAZZLED,
ENTANGLED,
EXHAUSTED,
FATIGUED,
FLAT_FOOTED,
FRIGHTENED,
@@ -123,6 +124,17 @@ class TestConditionData:
assert ENTANGLED.cant_charge is True
assert ENTANGLED.speed_mult == 0.5
def test_exhausted_minus6_dex_gives_minus3_ac_and_ref(self) -> None:
# SRD: exhausted takes -6 to Dexterity => -3 AC and -3 Reflex
# (each -2 Dex = -1 AC/Ref, same modelling as entangled's -4 Dex).
mods = {m.target: m.value for m in EXHAUSTED.modifiers}
assert mods["attack"] == -3
assert mods["damage"] == -3
assert mods["ac"] == -3
assert mods["ref"] == -3
assert "fort" not in mods
assert "will" not in mods
def test_fatigued_flags(self) -> None:
assert FATIGUED.cant_charge is True