Skip to main content

✅ Purifying flame does not fire on opponent phase

CategoryAbility
StatusPassing
Testtests/test_abilities_familiars.py::test_purifying_flame_does_not_fire_on_opponent_phase

Purifying Flame only fires on owner's main phase.

Preconditions

  • Lane 0: P1's Purifying Flame (102_1).

  • Lane 0: P2's Duban (001) — 0 damage.

Action

  • Fire MAIN_PHASE_START for P2.
new_state = fire_event(
state,
GameEvent(
event_type=EventType.MAIN_PHASE_START,
source=None,
target=None,
value=None,
side=Side.PLAYER_2,
lane=None,
),
)

duban_after = next(d for d in new_state.demons if d.unit_id == "001")

Expected Postconditions

  • Duban damage = 0 (Purifying Flame did not fire).

Assertions

assert duban_after.damage == 0, "Purifying Flame should not fire on opponent's phase."