✅ Allied ability in legal actions
| Category | Interaction |
| Status | Passing |
| Test | tests/test_abilities_actions.py::test_allied_ability_in_legal_actions |
Sekhmet's Relentless Attack is Allied — non-Sekhmet demons should see it in their legal actions list.
Preconditions
-
P1 Main Phase, P1 has 5 AP
-
Lane 0: P1's Sekhmet (#065) — READIED (owns Relentless Attack, Allied idx=1)
-
Lane 1: P1's Flauros (#013) — READIED (does NOT own the ability)
-
Lane 0: P2's Duban (#001) — READIED (enemy target)
Action
- Query get_legal_actions for P1
from engine.game_loop import get_legal_actions
legal = get_legal_actions(state, Side.PLAYER_1)
Expected Postconditions
-
Flauros can see and perform Sekhmet's Allied Relentless Attack
-
Allied ability appears in Flauros's legal action list
Assertions
assert any(
a.performer_id == flauros.unit_id and a.owner_unit_id == "065"
for a in legal
), "Flauros should be able to perform Sekhmet's Allied ability"