#showtooltip
/cast [target=focus, exists, harm] Spell Lock; Spell Lock
^for some reason this casts at target as well as focus… I want it to only cast against focus, it shouldn’t work at all against target, you shouldn’t be able to press button…
Same for this macro:
#showtooltip Spell Lock(Command Demon Ability)
/stopcasting
/cast [@focus] Command Demon
/cast [target=focus, exists, harm] Spell Lock; Spell Lock
It’s the extra “Spell Lock” at the end. It’s basically telling the macro if you don’t have a focus to do the default action (which will cast on a target if you have one.) (Likewise, don’t use and empty conditional [] at the end, as it will do the same thing.) Also, harm implies exists, so you only need harm. I also like to add a nodead conditional so it won’t try to cast on a dead focus. (It’s probably more important for mouseovers, but it doesn’t hurt on focus macros.)
#showtooltip
/cast [@focus,harm,nodead]Spell Lock
If it annoys you that it has a “?” icon if you don’t have a focus, you can add Spell Lock to the tooltip:
#showtooltip Spell Lock
/cast [@focus,harm,nodead]Spell Lock
#showtooltip
/cast [pet:felhunter/observer,@focus] Spell Lock; [@focus,harm,nodead] [] Command Demon