How do I make a macro target nearest person?

UI and Macro
I was wondering how I would go about making a macro that would target the nearest person to me and use a spell on it. This is what I use to use in 4.3 that would allow me to do that with Judgement as the spell i wanted to use:

#showtooltip Judgement
/console targetnearest distance 10.000000
/targetenemy [noharm][dead]
/console targetnearest distance 41.000000
/cast [harm,nodead] Judgement

please help fix this macro so it works now thanks!
/console targetnearest distance was removed and there is no substitute.

Join the Conversation

Return to Forum