Page 1 of 1

LF target macro

PostPosted: Fri Feb 05, 2016 8:26 am
by wpzwang
need a macro can get the target with a name.

like this /target abc ,now if have a target name aaa nearby, this macro will select aaa not abc.

i need it can select abc ,so anyone can help me?

Re: LF target macro

PostPosted: Fri Feb 05, 2016 10:45 am
by Dreez
If there is no exact match nearby /target (or TargetByName()) will always target similar matches

however this workaround should be what you are looking for:

Code: Select all
/run local t="wpzwang" TargetByName(t) if not(UnitName("target")==t)then TargetLastTarget()end