'use client'; import type { Action, GameView } from '@/game/engine'; import { CardInspector, CardRules } from './card-inspector'; import { Button } from './ui/button'; export function ChoamKull({ game, act, busy, }: { game: GameView; act: (action: Action) => void; busy: boolean; }) { const reaction = game.kullReaction; if (!reaction) return null; const reactor = game.players.find((player) => player.id === reaction.player); const target = game.players.find((player) => player.id === reaction.target); const ownsOffer = game.me === reaction.player && reaction.canDecline; const disabled = busy || game.status !== 'playing'; return (

Kull Wahad · attempted Karama play

{target?.name ?? 'The activating player'} is attempting {reaction.intent}. The attempted card remains unplayed while {reactor?.name ?? 'CHOAM'} responds.

{!ownsOffer ? (

Waiting for {reactor?.name ?? 'CHOAM'} to respond.

) : ( <>

Decline to continue the original play, or use a listed physical Kull Wahad card. Successful Kull retains the attempted card and prevents that player’s Karama activations for this phase. A different eligible Karama can prevent Kull before that restriction takes effect.

{reaction.blocked &&

{reaction.blocked}

} {!reaction.blocked && (
{reaction.cards.map((card) => (

{card.name}

Physical cost: {card.id}

))}
)} )}
); }