Hey folks,
I’m hoping for some macro help here as I’m not having any luck. Currently I have a macro for Innervate and one for Rebirth that allow me to cast it on a mouseover target and announce it to party. For example, my innervate macro looks like this:
/cast [@mouseover,help] Innervate
/script if UnitIsPlayer(“mouseover”) then SendChatMessage(“Used Innervate on “…select(1,UnitName(“mouseover”))…”!”, “PARTY”) end
What I’m looking for is a macro that will announce it to party if I’m in a party OR announce it to raid if I’m in a raid but retains the mouseover target announcement. I know it’s possible because the following macro works to send the chat to Party if in a party or Raid if in a raid:
/cast Lightwell
/run SendChatMessage(“Lightwell is up, use it!”, ((UnitInRaid(“player”)and “RAID” or “PARTY”)))
I’ve not been able to incorporate the above function into my macro(s)… the only thing I’ve managed to come up with is a macro that announces to party AND raid at the same time with a simple duplication of the SendChatMessage script:
/cast [@mouseover,help] Innervate
/script if UnitIsPlayer(“mouseover”) then SendChatMessage(“Used Innervate on “…select(1,UnitName(“mouseover”))…”!”, “PARTY”) end
/script if UnitIsPlayer(“mouseover”) then SendChatMessage(“Used Innervate on “…select(1,UnitName(“mouseover”))…”!”, “RAID”) end
Any and all help is appreciated!