/run TargetNearestFriend() if UnitName('target') == UnitName('player') then TargetNearestFriend() end
/run TargetNearestFriend()if UnitIsUnit("target", "player") then TargetNearestFriend()end
|
Colezz wrote:wow thatnks it works great guys, now just wondering is it possible to make it exclude hunter and warlock pets and only target the player
/run local t,u,p,e=TargetNearestFriend,UnitIsUnit,UnitIsPlayer,UnitPlayerControlled;t()if u("target","player")or(e("target")and not p("target"))then t() end
|