# Drawstep engine · Values · `maxSameName` > Max same name — CR 201.2a, 608.2h: largest number of matching battlefield permanents sharing a name. Face-down and nameless permanents contribute nothing. 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#maxSameName ## Where it goes A number: `{ "kind": "maxSameName", … }` wherever a ValueDef is accepted (`amount`, `power`, `max`, `count` …); a plain integer is also a ValueDef. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `filter` | `ObjectFilter` | no | Which objects (ObjectFilter; set fields AND together) | | `who` | `"you" \| "controller" \| "abilityController" \| "sourceController" \| "owner" \| "eachOpponent" \| "eachPlayer" \| "target" \| "triggeringPlayer" \| "defendingPlayer" \| "attackingPlayer" \| "activePlayer" \| "re …` | no | Which player(s) — a player selector (default `you`) | ## Minimal form ```json {"kind":"maxSameName"} ``` The engine reads that minimal form as: “the greatest number of permanents on the battlefield with the same name”. ## Stock examples - **Endless Atlas** — “{2}, {T}: Draw a card. Activate only if you control three or more lands with the same name.” ```json {"kind":"maxSameName","filter":{"types":["Land"]},"who":"you"} ``` - **Mechanized Production** — “At the beginning of your upkeep, create a token that's a copy of enchanted artifact. Then if you control eight or more artifacts with the same name as one another, you win the game.” ```json {"kind":"maxSameName","filter":{"types":["Artifact"]},"who":"you"} ``` - **Sceptre of Eternal Glory** — “{T}: Add three mana of any one color. Activate only if you control three or more lands with the same name.” ```json {"kind":"maxSameName","filter":{"types":["Land"]},"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