# Drawstep engine · Values · `distinct` > Distinct — Number of different values of a property among matching objects (coven); cardType counts card types (CR 205.2a). 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#distinct ## Where it goes A number: `{ "kind": "distinct", … }` wherever a ValueDef is accepted (`amount`, `power`, `max`, `count` …); a plain integer is also a ValueDef. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `property` | `"power" \| "toughness" \| "manaValue" \| "name" \| "color" \| "creatureType" \| "cardType"` | yes | Which characteristic's distinct values are counted | | `filter` | `ObjectFilter` | no | Which objects (ObjectFilter; set fields AND together) | | `zone` | `"battlefield" \| "hand" \| "graveyard" \| "library" \| "exile" \| "stack" \| "command"` | no | A zone name (battlefield, hand, graveyard, library, exile, stack, command) | | `who` | `"you" \| "controller" \| "abilityController" \| "sourceController" \| "owner" \| "eachOpponent" \| "eachPlayer" \| "target" \| "triggeringPlayer" \| "defendingPlayer" \| "attackingPlayer" \| "activePlayer" \| "re …` | no | Which player(s) — a player selector (default `you`) | | `target` | `TargetDef` | no | Read the objects of a selection instead of a zone: thisWay (as the action found them — "card type among cards discarded this way"), triggering (a oneOrMore group, as each last existed — "among those cards"), a target slot. Never prompts | ## Minimal form ```json {"kind":"distinct","property":"power"} ``` The engine reads that minimal form as: “the number of different powers among permanents on the battlefield”. ## Stock examples - **Color Witness** — “Equipped creature gets +1/+0 for each of its colors.” ```json {"kind":"distinct","property":"color","filter":{"host":true}} ``` - **Golden Ratio** — “Draw a card for each different power among creatures you control.” ```json {"kind":"distinct","property":"power","filter":{"types":["Creature"],"controller":"you"}} ``` - **Colors Values** — “You gain life equal to the number of colors among permanents you control.” ```json {"kind":"distinct","property":"color","filter":{"controller":"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