|Useful macros by class|
Casts the first spell for which the options are true.
/cast [options] spell name or item or bagID slot or invSlotID
You can also use
This command accepts secure command options. The value associated with the first satisfied condition will be interpreted as described below, and an action will be performed at the condition target (or your current target, or the implied target if the condition did not specify an explicit target). If no conditions are satisfied, no action will be performed.
The clause value is interpreted as either:
- spell name
- Name of the spell to cast, prefixed by an exclamation mark to prevent toggling an ability off
- The name of the item to be used.
- BagID slot
- The bag the item is in (0 is backpack, etc...), and the slot number containing the item, starting at 1; e.g. "0 1" would use the first item in your backpack.
- The slot on your character in which to use an item.
If the clause value is the name of both a spell and an item in your inventory, the /cast command prefers to cast the spell.
- This will revive the pet if it is out and dead, call the pet if it is not out, or mend the pet if it is out and alive
/cast [@pet,dead] Revive Pet; [nopet] Call Pet; Mend Pet
- If activated with mouse button 2, this will cast Flash Heal on the player else if the unit saved as the player's focus can have helpful spells cast on it and is alive, it will cast Flash Heal on the player's focus else it will cast Flash Heal on the player.
/cast [@player, btn:2][@focus, help, nodead][@player] Flash Heal
- Let's analyze:
- The macro directs the spell to be cast at the player if the macro is activated with mouse button 2.
...[@focus, help, nodead]...
- The macro directs the spell to be cast at the player if the unit in the player's focus can have helpful spells cast on it and is alive.
- The macro directs the spell to be cast at the player with no additional conditions.