Aim
Conqueror of Worlds
Unit #015
| HP | PWR | CP | Speed | Range | Tier |
|---|---|---|---|---|---|
| 15 (+9) | 9 (+7) | 4 (+3) | Slow | Distant | C |
Abilities
Passive
Aim has +1 AP Cost on all actions.
Engine Implementation
def _aim_ap_cost(state: GameState, demon: DemonInstance) -> dict[str, int]:
return {"ap_cost": 1}
register_passive("015", 0, _aim_ap_cost)
Passive
Aim cannot deal damage to Local Demons or Demons 1 lane away.
Engine Implementation
def _aim_range_restriction(
state,
event,
demon,
depth: int,
):
"""Revert damage dealt by Aim to targets within 1 lane.
Fires on DAMAGE_DEALT. If Aim is the source and the lane distance
to the target is 0 (local) or 1, the damage is reversed.
event.source = Aim
event.target = the damaged demon
event.value = the effective damage that was applied
"""
# Only fire when Aim is the source of the damage
if event.source is None:
return None
if event.source.instance_id != demon.instance_id:
return None
if event.target is None:
return None
lane_distance = abs(demon.lane - event.target.lane)
if lane_distance <= 1:
# Target is local or 1 lane away — revert the damage
new_state = copy.deepcopy(state)
target_in_state = next(
(d for d in new_state.demons if d.instance_id == event.target.instance_id),
None,
)
if target_in_state is None:
return None
# Revert by subtracting the damage amount (event.value is effective damage)
if event.value is not None and event.value > 0:
target_in_state.damage = max(0, target_in_state.damage - event.value)
return new_state
return None
register_trigger("015", 1, _aim_range_restriction)