Skip to content

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.

The reorderCards prompt in the Manabrew client

input.type is "reorderCards". The remaining fields:

interface ReorderCardsInput {
presentation: PromptPresentation;
cards: Array<CardDto>;
targetLabel: string;
topOfDeck: boolean;
}

References: CardDto , PromptPresentation

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.

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"] }
}