fix(rules): pinned creatures cannot attack (definition corrected; apply-gap documented)
This commit is contained in:
@@ -698,15 +698,17 @@ def test_grappled_attacker_takes_minus2_on_trip_cmb() -> None:
|
||||
assert engine._transcript[-1].endswith("-> FAILED")
|
||||
|
||||
|
||||
def test_pinned_attacker_takes_minus2_on_trip_cmb() -> None:
|
||||
# Same -2 applies to a pinned creature (SRD Conditions - Pinned).
|
||||
def test_pinned_attacker_cannot_attempt_maneuvers() -> None:
|
||||
# SRD Conditions - Pinned: a pinned creature is tightly bound and can
|
||||
# only attempt to escape — the trip is refused outright (cant_attack),
|
||||
# so the -2 CMB never even rolls.
|
||||
a = make_state(make_combatant("a", attack_bonus=2), "players", (1, 1))
|
||||
b = make_state(make_combatant("b"), "monsters", (1, 2))
|
||||
_conditioned(a, "pinned")
|
||||
engine = make_engine([1, 10], [a, b])
|
||||
engine._execute_maneuver(a, b, "trip")
|
||||
assert not any(c.condition.name == "prone" for c in b.active_conditions)
|
||||
assert engine._transcript[-1].endswith("-> FAILED")
|
||||
assert "wait (cannot attack)" in engine._transcript[-1]
|
||||
|
||||
|
||||
def test_grappled_attacker_grapple_check_is_exempt() -> None:
|
||||
|
||||
Reference in New Issue
Block a user