# Drawstep engine · Values · `devotion` > Devotion — Devotion to the colors: mana symbols of those colors among permanents you control (chroma: among cards in `zone`). 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/values#devotion ## Where it goes A number: `{ "kind": "devotion", … }` wherever a ValueDef is accepted (`amount`, `power`, `max`, `count` …); a plain integer is also a ValueDef. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `colors` | `string[]` | yes | Colour letters; "chosen" is the colour chosen earlier in this resolution (Nykthos: choose a color, then your devotion to that color) | | `who` | `"you" \| "controller" \| "abilityController" \| "sourceController" \| "owner" \| "eachOpponent" \| "eachPlayer" \| "target" \| "triggeringPlayer" \| "defendingPlayer" \| "attackingPlayer" \| "activePlayer" \| "re …` | no | Which player(s) — a player selector (default `you`) | | `zone` | `"battlefield" \| "hand" \| "graveyard" \| "library" \| "exile" \| "stack" \| "command"` | no | A zone name (battlefield, hand, graveyard, library, exile, stack, command) | | `filter` | `ObjectFilter` | no | Which objects (ObjectFilter; set fields AND together) | ## Minimal form ```json {"kind":"devotion","colors":[]} ``` The engine reads that minimal form as: “your devotion to colorless”. ## Stock examples - **Gray Merchant of Asphodel** — “When this creature enters, each opponent loses X life, where X is your devotion to black. You gain life equal to the life lost this way.” ```json {"kind":"devotion","colors":["B"],"who":"you"} ``` - **Devoted Search** — “Search your library for a card with mana value less than or equal to your devotion to black, reveal it, put it into your hand, then shuffle.” ```json {"kind":"devotion","colors":["B"],"who":"you"} ``` - **Renata, Called to the Hunt** — “Renata's power is equal to your devotion to green.” ```json {"kind":"devotion","colors":["G"],"who":"you"} ``` ## Related - [Values](https://drawstep.xyz/wiki/mtg/values.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