# Drawstep engine · Replacements · `asAttaches` > As attaches — Make and remember a color choice as this becomes attached to a new matching object (Sanctuary Blade). 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/replacements#asAttaches ## Where it goes A replacement ability: `{ "kind": "replacement", "replacement": { "replaces": "asAttaches", … } }`. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `filter` | `ObjectFilter` | yes | Which objects (ObjectFilter; set fields AND together) | | `key` | `string` | no | Storage key of a noted value or choice (defaults to the choice's kind) | ## Minimal form ```json {"replaces":"asAttaches","filter":{"types":["Creature"]},"choice":"color"} ``` The engine reads that minimal form as: “as ~ becomes attached to a creature, choose a color”. ## Related - [Replacements](https://drawstep.xyz/wiki/mtg/replacements.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