WoW Macro Commands Reference

The commands and conditionals you actually use: cast, use, mouseover, cursor, modifiers, one-button burst. Copy the templates and replace the spell names with the ones from your rotation page.
Spell and item names in a macro must match your game client language exactly. The rotation pages on this site show spell names in your selected language, so copy them from there.

Basic commands

CommandWhat it does
#showtooltipShow the icon, cooldown and tooltip of the spell the macro will cast. Put it on the first line of almost every macro.
/cast SpellCast a spell. Several off-global-cooldown spells on separate /cast lines all fire in one press; only one on-GCD spell per press will go off.
/use Item · /use 13 · /use 14Use an item by name or by equipment slot. 13 and 14 are the two trinket slots, 6 is the belt, 10 is gloves.
/castsequence reset=10 A, B, CCast A, then B, then C on successive presses. reset=10 restarts after 10 seconds out of use; reset=combat restarts when you leave combat. The sequence does not skip a step that is on cooldown.
/stopcastingInterrupt your own current cast. Put it before an interrupt or an instant you must get out right now.
/cancelaura BuffRemove a buff from yourself, for example a slow-fall or a form.
/stopmacro [condition]Stop running the rest of the macro if the condition is true.
/startattack · /petattackStart auto-attacking the target; send your pet to attack it.
/focus · /clearfocusSet or clear your focus target, which other macros can then address with @focus.
/targetenemy · /cleartargetCycle to the next enemy target; clear your current target.
/equipset NameSwap to a saved equipment set from the Equipment Manager.

Conditionals

Conditionals go in square brackets right after the command. Several conditions inside one bracket must all be true; separate alternatives with a semicolon and the first one that matches wins.

ConditionalWhat it does
[@mouseover]Cast on the unit or frame under your mouse instead of your target. The standard way to heal, dispel and interrupt without switching targets.
[@cursor]Place a ground-targeted spell at the mouse position instantly, skipping the green circle.
[@player]Place a ground-targeted spell on yourself, or cast a friendly spell on yourself.
[@focus] · [@targettarget]Cast on your focus target, or on the target of your target.
[harm] · [help]The unit is attackable, or the unit is friendly. Used to make one key do damage on enemies and heal on allies.
[exists] · [nodead]The unit exists; the unit is alive. Almost always paired with @mouseover so the macro falls back to your target when the mouse is not over anyone.
[mod:shift] · [mod:ctrl] · [mod:alt]A modifier key is held. Lets one button carry two or three spells.
[combat] · [nocombat]You are in combat, or out of combat.
[known:Spell] · [talent:row/col]You know the spell; you have the talent at that position. Useful for one macro that works across specs or builds.
[form:1] · [stance:2]You are in a given form or stance, numbered in the order of your form bar.
[pet] · [nopet]You have a pet out, or you do not.

Templates to copy

One-button burst

Every off-GCD cooldown plus both trinkets on one press, ending with the on-GCD opener. Take the list from the opener section of your rotation page.

#showtooltip MAIN_SPELL
/use 13
/use 14
/cast COOLDOWN_1
/cast COOLDOWN_2
/cast MAIN_SPELL

Mouseover heal / dispel

Cast on whoever the mouse is over if they are friendly and alive, otherwise on your target, otherwise on yourself.

#showtooltip
/cast [@mouseover,help,nodead][help,nodead][@player] SPELL

Ground spell at cursor

Death and Decay, Blizzard, Efflorescence and friends land where the mouse is, no targeting circle.

#showtooltip
/cast [@cursor] SPELL

Interrupt: mouseover, then focus, then target

Stops your own cast first so the kick is never delayed by a spell you were channeling.

#showtooltip
/stopcasting
/cast [@mouseover,harm,nodead][@focus,harm,nodead][harm] INTERRUPT

Two spells on one key

Hold Shift for the second spell. Handy for a pair like a single-target and its AoE version.

#showtooltip [mod:shift] SPELL_B; SPELL_A
/cast [mod:shift] SPELL_B; SPELL_A

Self-cast on Alt

Normal press goes to your target; holding Alt casts it on yourself.

#showtooltip
/cast [mod:alt,@player][help,nodead][@player] SPELL

Things a macro cannot do

← Rotation guides