fungchewuchi
Master of the Flying Guillotine
I had to make a new version of a common macro template I use today, and I thought it might be handy for others. I'm not going to explain how all this works, you can search the functions and syntax yourself. It has been handy for me for years in different forms; this version has a little bit of everything I might use parts of. As it is, it only messages party or raid with "pain suppression on [targetname]" when the spell will actually be cast. Could be altered with more fewer or other conditions, msging say yell whisper etc.
#showtooltip
/script local u,ps,c="Target","Pain Suppression",GetNumRaidMembers()>0 and "RAID" or "PARTY";if IsSpellInRange(ps,u)==1 and GetSpellCooldown(ps)==0 then SendChatMessage(ps.." on "..UnitName(u),c) end
/cast [target] Pain Suppression
#showtooltip
/script local u,ps,c="Target","Pain Suppression",GetNumRaidMembers()>0 and "RAID" or "PARTY";if IsSpellInRange(ps,u)==1 and GetSpellCooldown(ps)==0 then SendChatMessage(ps.." on "..UnitName(u),c) end
/cast [target] Pain Suppression