TempStack — an ordered, transient list of cards extracted from a deck and
held aside on an actor for later use. Backing storage for abilities like
Norai's Grand Design.
Cards are "set aside" by marking them drawn: true on sourceDeckId,
which removes them from that deck's normal draw rotation. The stack stores
card IDs (top of stack = index 0) plus expiry metadata. On expiry the
remaining cards are returned per returnOnExpire:
"source" — un-draw on sourceDeckId and shuffle
"discard" — leave drawn (effective discard pile)
"remove" — delete the card documents
metadata is an open bag for ability-specific flags. Reactive triggers
fired by bms.tempStackConsumed read these to apply ability-specific
side-effects (e.g. Grand Design's inkmarkTargetsOnUse).
TempStack — an ordered, transient list of cards extracted from a deck and held aside on an actor for later use. Backing storage for abilities like Norai's Grand Design.
Cards are "set aside" by marking them
drawn: trueonsourceDeckId, which removes them from that deck's normal draw rotation. The stack stores card IDs (top of stack = index 0) plus expiry metadata. On expiry the remaining cards are returned perreturnOnExpire: "source" — un-draw on sourceDeckId and shuffle "discard" — leave drawn (effective discard pile) "remove" — delete the card documentsmetadatais an open bag for ability-specific flags. Reactive triggers fired bybms.tempStackConsumedread these to apply ability-specific side-effects (e.g. Grand Design'sinkmarkTargetsOnUse).