feat(combat): enforce behavioral condition flags
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user