# Drawstep engine · Effects · `heist` > Heist — Heist the targeted opponent's library: sample three distinct random nonlands, choose one to exile face down; you may cast it while exiled using mana of any type. Repeat amount times (default 1). 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/effects#heist ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "heist", … }`. Steps resolve in order. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `target` | `PlayerTargetDef` | yes | What it acts on (TargetDef) | | `amount` | `number` | no | How many / how much (integer or ValueDef) | ## Minimal form ```json {"effect":"heist","target":{"of":"player","mode":"chosen"}} ``` The engine reads that minimal form as: “heist target player's library”. ## Stock examples - **Alchemy Heist Fixture** — “Heist target opponent's library.” ```json {"effect":"heist","target":{"of":"player","mode":"chosen","player":"eachOpponent"}} ``` ## Related - [Effects](https://drawstep.xyz/wiki/mtg/effects.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