# Drawstep engine · Statics & layers · `costModifier` > Cost modifier — Spells matching the filter cost {N} less/more; with filter self on a spell, that spell's own cost ("This spell costs {1} less to cast …"). 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/statics#costModifier ## Where it goes The `effect` of a static ability (or one of its `effects`): `{ "kind": "static", "effect": { "type": "costModifier", … } }`. Applied continuously through the layer system. Printed words that point here (search aliases): costs {1} less more to cast reduction. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `filter` | `ObjectFilter` | no | Which objects (ObjectFilter; set fields AND together) | | `amount` | `number \| { kind: "var"; name: string } \| { kind: "count"; digSubset?: "looked" \| "picked" \| "rest"; of?: "object" \| "player"; zone?: "battlefield" \| "hand" \| "graveyard" \| "library" \| "exile" \| "stack …` | yes | Signed generic cost change; negative values reduce the cost (CR 601.2f) | | `from` | `("battlefield" \| "hand" \| "graveyard" \| "library" \| "exile" \| "stack" \| "command")[]` | no | Cast only from one of these zones (CR 601.2a/f) | | `notFrom` | `("battlefield" \| "hand" \| "graveyard" \| "library" \| "exile" \| "stack" \| "command")[]` | no | Exclude these casting origins, e.g. anywhere other than hand (CR 601.2a/f) | | `targets` | `TargetDef` | no | Apply once when any announced target matches this group, relative to this ability's source (CR 601.2c/f) | | `perTarget` | `boolean` | no | Scale by the spell's number of announced targets; repeated occurrences count separately (CR 601.2c/f, 115.3) | | `addedMana` | `string` | no | Additional colored or colorless mana required, e.g. {B}; not a generic increase (CR 601.2f) | | `reduceMana` | `string` | no | CR 118.7b-d: a colored or colorless reduction per unit, e.g. {U} or {W}{U}{B}{R}{G} ("cost {U} less to cast"); each symbol removes a matching symbol of the cost (or a hybrid symbol with that color), the excess reduces generic mana. Pair with amount 0 | | `coloredOnly` | `boolean` | no | "This effect reduces only the amount of colored mana you pay": the part of reduceMana the cost has no matching symbol for is lost instead of reducing generic mana | | `ifAdditionalCostPaid` | `boolean` | no | CR 118.8, 601.2b/f (Defilers): only spells for which the optional additional cost granted by a spellsHave part of this same static ability was paid ("Those spells cost {G} less to cast if you paid life this way") | | `addedCost` | `CostDef` | no | CR 118.8, 601.2f-h: a non-mana cost each affected spell's caster also pays, once per spell ("Spells your opponents cast that target this creature cost an additional 3 life to cast": { payLife: 3 }, amount 0) | | `who` | `"you" \| "controller" \| "abilityController" \| "sourceController" \| "owner" \| "eachOpponent" \| "eachPlayer" \| "target" \| "triggeringPlayer" \| "defendingPlayer" \| "attackingPlayer" \| "activePlayer" \| "re …` | no | Players whose spells are modified; defaults to you | | `firstEachTurn` | `boolean` | no | Only the first spell matching this filter that player casts each turn (CR 601.2f) | | `perCount` | `{ filter?: ObjectFilter; zone?: "battlefield" \| "hand" \| "graveyard" \| "library" \| "exile" \| "stack" \| "command" }` | no | Scale by a count of matching objects ("for each artifact you control") | | `perValue` | `ValueDef` | no | Scale by a value ("for each creature that died this turn", "for each basic land type among lands you control") | ## Minimal form ```json {"type":"costModifier","amount":1} ``` The engine reads that minimal form as: “spells you cast cost {1} more to cast”. ## Stock examples - **Thalia, Guardian of Thraben** — “Noncreature spells cost {1} more to cast.” ```json {"type":"costModifier","filter":{"notTypes":["Creature"]},"amount":1,"who":"eachPlayer"} ``` - **Derelor** — “Black spells you cast cost {B} more to cast.” ```json {"type":"costModifier","filter":{"colors":["B"]},"amount":0,"addedMana":"{B}","who":"you"} ``` - **Killian, Ink Duelist** — “Spells you cast that target a creature cost {2} less to cast.” ```json {"type":"costModifier","amount":-2,"targets":{"of":"object","mode":"all","filter":{"types":["Creature"]}},"who":"you"} ``` ## Related - [Statics & layers](https://drawstep.xyz/wiki/mtg/statics.md) — the whole topic - [Filters & targets](https://drawstep.xyz/wiki/mtg/targets.md) — how `target` / `filter` select objects and players (selection algebra) - [Values](https://drawstep.xyz/wiki/mtg/values.md) — every number kind an `amount` accepts - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive