✅ Exile exhaustion prevents march
| Category | Regression |
| Status | Passing |
| Test | tests/test_abilities_complex.py::TestJudasExile::test_exile_exhaustion_prevents_march |
Regression: Exhausted demon cannot march (confusions #4 + #17). Exiled Judas on P2's side cannot move.
Preconditions
- P1 just used Exile. Judas is on P2's side, EXHAUSTED in Lane 1.
Action
- P2 attempts to march Judas from Lane 1 to Lane 2
judas_exiled = make_demon(
"029", lane=1, owner=Side.PLAYER_2, state=DemonState.EXHAUSTED
)
state, placed = _make_state_with_demons(judas_exiled)
judas_p = placed[0]
with pytest.raises(ValueError, match="EXHAUSTED"):
operations.march_demon(state, judas_p, target_lane=2)
Expected Postconditions
- Raises ValueError: "EXHAUSTED" (cannot march while exhausted)
Assertions
# pytest.raises block above serves as the assertion