# Drawstep engine · Conditions · `sourceAboveInGraveyard` > Source above in graveyard — CR 400.7, 603.4: the source is in its owner's graveyard with cards put there after it: `direct` the card directly above it matches the filter ("with a creature card directly above it"); otherwise at least `min` (default 1) of the cards above it match ("with three or more creature cards above it"). Engine: Magic: The Gathering (`mtg`). This is one primitive of the Drawstep card vocabulary; field names and the discriminator are exact. Wiki page: https://drawstep.xyz/wiki/mtg/conditions#sourceAboveInGraveyard ## Where it goes A condition: `{ "kind": "sourceAboveInGraveyard", … }` — in an `if` effect, a trigger's `condition` (intervening if), a static's `condition` ("as long as"), an activated ability's `onlyIf`, a replacement's `unless`. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `filter` | `ObjectFilter` | yes | Which objects (ObjectFilter; set fields AND together) | | `min` | `number` | no | Minimum number of selections / required amount | | `direct` | `boolean` | no | Only the card directly above the source counts ("with a creature card directly above it"); otherwise any card put there after it | ## Minimal form ```json {"kind":"sourceAboveInGraveyard","filter":{"types":["Creature"]}} ``` The engine reads that minimal form as: “~ is in your graveyard with a creature card above it”. ## Stock examples - **Death Spark** — “At the beginning of your upkeep, if this card is in your graveyard with a creature card directly above it, you may pay {1}.” ```json {"kind":"sourceAboveInGraveyard","filter":{"types":["Creature"]},"direct":true} ``` ## Related - [Conditions](https://drawstep.xyz/wiki/mtg/conditions.md) — the whole topic - [Filters & targets](https://drawstep.xyz/wiki/mtg/targets.md) — how `target` / `filter` select objects and players (selection algebra) - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive