Originally Posted by
Toxophilist
Works great. Thank you. I have one more question to ask though. I replaced 'Tank' with %f and that works fine, but when I tried to replace 'Pet' with %p it didn't. Is there another code for pet?
If you want the unit's name, then use this:
Code:
#showtooltip
/cast [@focus,help][help][@pet,exists]Misdirection
/run local s,t=SecureCmdOptionParse("[@focus,help][help][@pet,exists]") if s then t=t or "target" SendChatMessage(("Misdirecting to %s"):format(GetUnitName(t),"RAID") end