reorderCards
Sent when a player puts a group of cards onto the top or bottom of their library in an order they choose — putting back the two cards from Brainstorm, or ordering cards a scry-style effect leaves on top.
Arguments
Section titled “Arguments”input.type is "reorderCards". The remaining fields:
interface ReorderCardsInput { presentation: PromptPresentation; cards: Array<CardDto>; targetLabel: string; topOfDeck: boolean;}#[serde(rename_all = "camelCase")]pub struct ReorderCardsInput { pub presentation: PromptPresentation, pub cards: Vec<CardDto>, pub target_label: String, pub top_of_deck: bool,}
References: CardDto , PromptPresentation
Response
Section titled “Response”type ReorderCardsOutput = { type: "reorderDecision"; orderedCardIds: string[] };Return the card ids in their final order — the first id ends up closest to the
top (or bottom) per topOfDeck.
Example
Section titled “Example”Putting two cards back on top of the library after Brainstorm:
{ "promptId": 7, "decidingPlayerId": "player-0", "input": { "type": "reorderCards", "presentation": { "title": "Put back on top", "targets": [] }, "cards": [ { "id": "hand-2", "name": "Ponder" }, { "id": "hand-5", "name": "Brainstorm" } ], "targetLabel": "Top of Library", "topOfDeck": true }}The response lists the same card ids in the desired draw order:
{ "promptId": 7, "output": { "type": "reorderDecision", "orderedCardIds": ["hand-5", "hand-2"] }}