Skip to main content

✅ Nahash forbidden fruit status expires

CategoryAbility
StatusPassing
Testtests/test_abilities_actions.py::test_nahash_forbidden_fruit_status_expires

Forbidden Fruit status expires at end of main phase.

Preconditions

  • Duban has "def" -2 and "ap_cost" -2 from Forbidden Fruit (phase_counter=1)

Action

  • Advance phase_counter to 2, call expire_status_effects()
state_after = execute_ability(state, nahash_on_field, ability_idx=0, targets=[duban_on_field])
state_after.phase_counter += 1
state_expired = expire_status_effects(state_after)
active = get_active_effects_on(state_expired, duban_on_field)

Expected Postconditions

  • Both status effects removed

Assertions

assert len(active) == 0, "Forbidden Fruit status effects must expire at end of main phase"