feat(combat): enforce behavioral condition flags

This commit is contained in:
2026-09-04 22:55:40 +02:00
parent d3f7f27c51
commit 67df26e042
2 changed files with 54 additions and 13 deletions
+4 -3
View File
@@ -225,8 +225,8 @@ class TestConditionOnAC:
engine, h, f = _make_engine(hero, foe, [10, 4])
f.conditions.append(STUNNED)
result = engine.resolve_attack(h, f, hero.attacks[0])
# foe AC 15 - 2 (stunned) = 13
assert result.ac == 13
# foe flat-footed AC 13 - 2 (stunned) = 11 (denies DEX to AC)
assert result.ac == 11
def test_blinded_defender_minus2_ac(self) -> None:
hero = _make_hero()
@@ -234,7 +234,8 @@ class TestConditionOnAC:
engine, h, f = _make_engine(hero, foe, [10, 4])
f.conditions.append(BLINDED)
result = engine.resolve_attack(h, f, hero.attacks[0])
assert result.ac == 15 - 2 # 13
# foe flat-footed AC 13 - 2 (blinded) = 11 (denies DEX to AC)
assert result.ac == 11
def test_entangled_defender_minus2_ac(self) -> None:
hero = _make_hero()