# Drawstep engine · Effects · `setPT` > Set P/T — CR 107.3, 611.2c, 613.4b: set base power/toughness to values fixed on resolution, including X/X. 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/effects#setPT ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "setPT", … }`. Steps resolve in order. Printed words that point here (search aliases): base power and toughness becomes 0/1. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `target` | `TargetDef` | yes | What it acts on (TargetDef) | | `power` | `ValueDef` | no | Base power; omitted leaves it unchanged | | `toughness` | `ValueDef` | no | Base toughness; omitted leaves it unchanged | | `duration` | `Duration` | no | CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes | ## Minimal form ```json {"effect":"setPT","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}}} ``` The engine reads that minimal form as: “target creature has base toughness ? until end of turn”. ## Stock examples - **Dragon Form Witness** — “” ```json {"effect":"setPT","target":{"of":"object","mode":"self"},"power":5,"toughness":5,"duration":"endOfTurn"} ``` - **Iteration 53 Nogi** — “” ```json {"effect":"setPT","target":{"of":"object","mode":"self"},"power":5,"toughness":5,"duration":"endOfTurn"} ``` - **Feather Witness** — “” ```json {"effect":"setPT","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}},"power":3,"toughness":1,"duration":{"whileTarget":{"hasCounter":"feather"}}} ``` ## Related - [Effects](https://drawstep.xyz/wiki/mtg/effects.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