✅ Can use ability returns false if exhausted
| Category | Regression |
| Status | Passing |
| Test | tests/test_abilities_registry.py::test_can_use_ability_returns_false_if_exhausted |
Handler registered. Sabnock EXHAUSTED.
Preconditions
-
Handler registered for ("003", 0)
-
Sabnock EXHAUSTED, P1 has 5 AP
Action
- can_use_ability(state, demon, ability_idx=0)
Expected Postconditions
-
Returns (False, "demon is exhausted")
-
(Confusion #4: exhausted demons cannot perform ANY actions)
Assertions
assert ok is False
assert "exhausted" in reason.lower()