LuaSlinger»Sinister Strike Or Start Attack

Sinister Strike Or Start Attack

Sinister Strike / Auto Attack Macro

Description: Macro to check not only the range to target (can you attack the target?) but to also use Sinister Strike if you have enough energy (which automatically turns on attack) or just attack if you're out of energy. Helpful when you're fighting a cluster of things. Prevents you from standing there looking at the mob.

if (UnitMana("player") > 40 and CheckInteractDistance("target", 1)) then
   CastSpellByName("Sinister Strike");
elseif (not PlayerFrame.inCombat and CheckInteractDistance("target", 1)) then
  CastSpellByName("Attack"); 
end

If taken down to one line you can fit this on a normal Macro button. The button will have the Sinister Strike Icon (no matter what you assign it in the macro panel) and will go red when you're out of range, fade when you're out of energy.

Also has the side effect of reducing the annoying "Not Enough Energy" messages. If you don't have enough energy it won't try to SS, and since you're already in combat, it exits without doing anything.