View Single Post
Unread 10-01-10, 09:54 PM   #10
TheGeek
A Firelord
 
TheGeek's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 494
Code:
#showtooltip Resurrection
/cast Resurrection
/run SendChatMessage("Casting "..GetSpellLink("Resurrection").." on "..UnitName("target") or "No Target",GetNumRaidMembers()>0 and "RAID" or GetNumPartyMembers()>0 and "PARTY" or "SAY")
That's what it looks like. If I happen to just be standing there and I hit the rez key without anyone targeted it pops up the error I posted a few ones up.

I've managed to narrow it down to this;

Code:
"..UnitName("target") or "No Target"
If the "..UnitName" piece is in it errors. It's like the command isn't understanding to use UnitName or No Target if nothing is targeted.
__________________
TheGeek is offline   Reply With Quote