View Single Post
Old 10-01-10, 09:43 PM   #8
TheGeek
A Firelord
 
TheGeek's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 494
Originally Posted by Guardix View Post
Code:
/run SendChatMessage("Casting "..GetSpellLink("Resurrection").." on "..UnitName("target") or "No Target",GetNumRaidMembers()>0 and "RAID" or GetNumPartyMembers()>0 and "PARTY" or "SAY")
Simply added a GetNumPartyMembers() and make it use "SAY" if you are not in raid nor party.
Ok, it's working except for if I accidentally hit it while not targeting, it kills the macro all together.
__________________
TheGeek is offline   Reply With Quote