#showtooltip Misdirection
/cast [target=focus,help][help][target=pet,exists,nodead] Misdirection
/script if(UnitExists(“focus”)) then SendChatMessage(“Misdirect on %f”); end
I think that’s a problem with the forums encoding, the quotationmarks are different.
#showtooltip Misdirection
/cast [target=focus,help][help][target=pet,exists,nodead] Misdirection
/script if(UnitExists("focus")) then SendChatMessage("Misdirect on %f"); end
Either it works like this or just replace all 4 " ingame. Because right now it doesn’t work at all if you copy-pasted it from the forum, at least on my end. Sorry for not catching that.
/edit: Yes, at least on my end it works now without a Lua error if I copy-paste that. Note to self: Use “Preformatted text” and not “Block quote” for code.