Skip to main content

✅ Adramelech command status expires end of phase

CategoryAbility
StatusPassing
Testtests/test_abilities_actions.py::test_adramelech_command_status_expires_end_of_phase

Command's cannot_act status expires at end of main phase.

Preconditions

  • Adramelech has cannot_act status from Command (phase_counter=1)

Action

  • Advance phase_counter, call expire_status_effects()
state_after = execute_ability(state, adramelech_on_field, ability_idx=1, targets=None)
active_before = get_active_effects_on(state_after, adramelech_on_field)
cannot_act_before = [e for e in active_before if e.stat == "cannot_act"]

Expected Postconditions

  • No active cannot_act status effects

Assertions

assert len(cannot_act_before) == 1
state_after.phase_counter += 1
state_expired = expire_status_effects(state_after)
active_after = get_active_effects_on(state_expired, adramelech_on_field)
assert len(active_after) == 0