I hijacked this macro from another thread regarding Leap of Faith.
I currently have a /yell statement macro'd to my PW:B. My guild is good about standing under it but pugs tend to be unaware. I have had some issues where I tried to pop and didn't realize it was on cd or hit the button more than once since lag prevented it from appearing immediately. On my to-do list is finding a better way to announce. I know there are add ons, but my PC has been misbehaving lately so I'd like to avoid adding more to it. This macro could function as a blueprint if I was a bit more knowledgeable.
I understand the mouseover, range, and cooldown portions, I also understand it will cast at your mouseover target first and your focus if the target isn't alive & friendly. The chat message portion selects the target though and I'm not sure which portion(s) to change to make it a yell instead. I'm also unclear on the purpose of "/script local u".
Can someone offer some guidance? Thanks!
/script local u,lof="mouseover","Leap of Faith";if IsSpellInRange(lof,u)==1 and GetSpellCooldown(lof)==0 then SendChatMessage("You just got LoveGripped! The whooshing in your ears and mild disorientation is a temporary side-effect of my love. I apologize for any inconvenience this may have caused.","WHISPER",nil,UnitName(u)) end
/cast [@mouseover,help,nodead][@focus,help,nodead]Leap of Faith