This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Macro target/notarget help
Post Reply
Return to board index
Post by
Aldun
Hey,
Can anyone help me? I want to make a macro which casts Lay on Hands on my target + says Casted Lay on Hands on %t.
However, if I cast it on myself while having an enemy targetted (using autoselfcast so I dont have to target myself), it would say ''Casted Lay on Hands on <npc name> or <notarget>. Is there a way to, if theres no friendly target, to cast it on myself?
So:
On a friendly player it says his name by %t,
On myself without myself targetted that it still sayd casted on Aldun, and not <notarget>
Thanks.
Post by
HighFive
Totally untested:/use Lay on Hands
/run local t,s=UnitInSecureCmdOptionParse("target;player"),"Lay on Hands"if IsSpellInRange(s,t)then SendChatMessage("Casting "..s.." on "..UnitName(t),"RAID")end
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.