fix(rules): exhausted -6 Dex now costs -3 AC and -3 Reflex
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user