01 / SYNTAX
How it is written
/cast [condition-group][condition-group][] Action; [branch-condition] ActionDETAILS
Parts of the syntax
- condition groups
- Optional adjacent bracket groups. Selectors and conditions are combined in each group; groups are alternatives for the same action.
- branches
- Optional semicolon-separated actions evaluated in order. The first matching branch is selected.
- Spell name
- The action name written after the optional conditions. A rank or variant can be written in parentheses, such as Frostbolt(Rank 1).
EXAMPLES
Try this syntax
Cast a spell
/cast Flash HealCasts Flash Heal using normal targeting.
Mouseover with normal-target fallback
/cast [@mouseover,help,nodead][] Flash HealCasts Flash Heal on a friendly, living mouseover unit, otherwise on the current target.
Ordered friendly and hostile branches
/cast [help] Heal; [harm] Damage; UtilityCasts Heal on a friendly target, Damage on a hostile one, and Utility otherwise.
Modifier and target priority
/cast [@focus,mod:alt,harm][@mouseover,harm][] InterruptCasts Interrupt on a hostile focus while Alt is held, else on a hostile mouseover unit, else normally.
KNOWN LIMITATIONS
Keep in mind
- Casting is a protected action: it requires a hardware key or click, and a macro cannot delay or repeat casts.