Skip to main content

Agares

Destroyer of Dignities

Unit #063

HPPWRCPSpeedRangeTier
12 (+6)4 (+2)3 (+2)SlowAnyC

Abilities

Flock — X AP

q: Flock: X AP - b, 1x: Play up to 2X Flying Menace Familiars into Target Lane. (Agares has 4 Flying MenaceFamiliars.)
Engine Implementation
def _agares_flock(
state: GameState, demon: DemonInstance, targets, choices, rng
) -> GameState:
"""#063 Agares — Flock
Familiar: X AP, (ready), 1x: Play up to 2X Flying Menace Familiars into Target Lane.

X = choices["x"]. Up to 2X Flying Menaces deployed to target lane.
Flying Menace familiar IDs: "063_1", "063_2", "063_3", "063_4".
(ready) = must be READIED; does NOT exhaust Agares.
"""
from engine.operations import deploy_familiar

x = choices.get("x", 0) if choices else 0
if x <= 0:
return state

max_deploy = 2 * x

if choices and "lane" in choices:
target_lane = choices["lane"]
elif targets:
target_lane = targets[0].lane
else:
target_lane = demon.lane

FLYING_MENACE_IDS = ["063_1", "063_2", "063_3", "063_4"]
owner = demon.owner

deployed = 0
for fid in FLYING_MENACE_IDS:
if deployed >= max_deploy:
break
if fid in state.players[owner].familiar_deck:
state = deploy_familiar(state, owner, fid, target_lane)
deployed += 1

return state

register_ability("063", 0, _agares_flock)
Agares