Purifying Flame
Familiar of Phoenix — Card 1 of 1
| HP | PWR | CP | Speed | Range |
|---|---|---|---|---|
| 15 (+9) | 4 (+2) | 4 (+3) | B (Bound) | Local |
Abilities
Passive
Demons can Fuse with Purifying Flame
Engine Implementation
def _purifying_flame_fusible_passive(state: GameState, demon: DemonInstance) -> dict:
"""102_1 Purifying Flame: marker passive — fusible by Demons.
Returns {"fusible_familiar": 1} to signal that normal familiar fuse
restrictions are lifted for this card.
"""
return {"fusible_familiar": 1}
register_passive("102_1", 0, _purifying_flame_fusible_passive)
Passive
d: At the start of your Main Phases, deal k Fixed Damage to All Local Demons.
Engine Implementation
def _purifying_flame_aoe_trigger(state: GameState, event: GameEvent, demon: DemonInstance, depth: int) -> GameState | None:
"""102_1 Purifying Flame — at start of owner's Main Phase, deal PWR Fixed
Damage to all Local Demons (both sides). This is friendly fire — there is
no "enemy" qualifier in the ability text.
"""
if event.event_type != EventType.MAIN_PHASE_START:
return None
if event.side != demon.owner:
return None
pwr = get_effective_pwr(state, demon)
if pwr <= 0:
return None
local_demons = [d for d in state.demons if d.lane == demon.lane]
new_state = state
for d in local_demons:
d_in_state = _find_demon(new_state, d.instance_id)
if d_in_state is not None:
new_state = deal_fixed_damage(new_state, d_in_state, pwr)
return new_state
register_trigger("102_1", 1, _purifying_flame_aoe_trigger)