Help with missdirect macro

Anyone know how to fix this macro? Now when i use it and i dont have focus, my character just /s “missdirect on %f” and target pets.

Can i add a line to make a if() no focus, hide /s when i target pet?

#showtooltip Misdirection
/cast [target=focus,help][help][target=pet,exists,nodead] Misdirection
/s Missdirect on %f

#showtooltip Misdirection
/cast [target=focus,help][help][target=pet,exists,nodead] Misdirection
/script if(UnitExists(“focus”)) then SendChatMessage(“Misdirect on %f”); end

This should work

1 Like

Thx! Worked, except it produced a LUA error. But managed to add a line to hide it:

#showtooltip Misdirection
/cast [target=focus,help][help][target=pet,exists,nodead] Misdirection
/script if(UnitExists(“focus”)) then SendChatMessage(“Misdirect on %f”);print(“Show LUA Errors: Off”);end

The weird thing is that i cant missdirect ppl on mounts, is that a thing?!?

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.

Yes that is limitation of the Misdirect spell.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.