'use client'; import type { Action, GameView } from '@/game/engine'; import { Button } from './ui/button'; export function EcazDukeAcquisitionChoices({ game, act, busy, }: { game: GameView; act: (action: Action) => void; busy: boolean; }) { const entry = game.ambassadorEntry; if ( !entry || entry.stage !== 'offer' || entry.effect !== 'ecaz' || entry.owner !== game.me || game.decision?.kind !== 'ecazAmbassador' || game.decision.player !== game.me ) return null; const recipients = entry.beneficiaries.length ? entry.beneficiaries : [{ player: entry.owner, blocked: entry.dukeAcquisition ? entry.dukeAcquisition.blocked : 'Duke acquisition is unavailable for this opportunity.', }]; return (

Acquire Duke Vidal for a listed recipient. The Ambassador returns to your supply.

Provisional ordinary acquisition: the chosen recipient keeps Duke Vidal until battle use, including when unused beyond this turn, unless another rule takes him away. The separate Duke loan after a new alliance lasts for the current turn. Only Ecaz may revive him.

{recipients.map((recipient) => { const blocked = recipient.blocked; const disabled = busy || !!blocked; const reasonId = `ecaz-duke-${entry.event}-${recipient.player}-blocked`; const name = game.players.find((player) => player.id === recipient.player)?.name ?? recipient.player; return (
{blocked &&

{blocked}

}
); })}
); }