'use client'; import { useState } from 'react'; import { ChoamPowerCost, useChoamPower } from './choam-power-cost'; import { choamPowerAction, choamPowerPlays } from '@/game/choam-power-options'; import { HelpTip } from './help-tip'; import { Button } from '@/components/ui/button'; import type { Action, GameView } from '@/game/engine'; export function ChoamWorthless({ game: g, act, busy, }: { game: GameView; act: (a: Action) => void; busy: boolean; }) { const [target, setTarget] = useState(''); const power = useChoamPower(g, g.phase === 4 ? 'laLaLa' : 'kulon'); const reactive = g.decision?.kind === 'choamFreeRevival'; if (!g.choamWorthless || ![4, 5].includes(g.phase)) return null; const selected = g.choamWorthless.targets.includes(target) ? target : g.choamWorthless.targets[0]; const recipient = g.decision?.kind === 'choamFreeRevival' ? g.decision.recipient : selected; return (

CHOAM Worthless powers

{g.phase === 4 ? 'La La La prevents a player’s free force revivals for the rest of Revival. If it stops a pending request, the player can choose a paid revival.' : 'Kulon adds one territory to your movement range this turn, including movement with ornithopters.'}{' '} A Karama response precedes discarding the card.

{g.phase === 4 && !reactive && ( )} {reactive && (

{g.players.find((p) => p.id === recipient)?.name} is requesting free force revival.

)} {power.play && ( )} {choamPowerPlays(g, 'kull').some( (play) => play.source === 'nexus' && play.effect === 'kull', ) && (

Kull Wahad reacts only to another player’s Karama attempt.{' '} {g.nexusKullPreview ? 'Choose printed or Nexus fuel in that opportunity.' : 'Nexus Kull is unavailable outside its explicit preview.'}

)} {reactive && ( )}
); }