✅ Malphas wardens command moves distant and applies def debuff
| Category | Ability |
| Status | Passing |
| Test | tests/test_abilities_actions.py::test_malphas_wardens_command_moves_distant_and_applies_def_debuff |
Malphas moves a distant enemy to its lane and applies -2 DEF.
Preconditions
-
P1 Main Phase, P1 has 5 AP
-
Lane 0: P1's Malphas (#041) — READIED
-
Lane 2: P2's Sabnock (#003) — READIED (distant from Malphas)
Action
- Execute Malphas's Warden's Command (ability idx=1, 2 AP, ready, 1x) targeting Sabnock
result = execute_ability(state, malphas_on_field, ability_idx=1, targets=[sabnock_on_field])
sabnock_after = next(d for d in result.demons if d.unit_id == "003")
effects = {e.stat: e.value for e in get_active_effects_on(result, sabnock_after)}
Expected Postconditions
-
Sabnock: moved to lane 0 (Malphas's lane)
-
Sabnock: has status "def" -2
-
Malphas: NOT exhausted (ready cost)
-
P1 AP: 3 (spent 2)
Assertions
assert sabnock_after.lane == 0
assert effects.get("def") == -2
assert malphas_after.state == DemonState.READIED
assert result.players[Side.PLAYER_1].ap == 3