Well, my addon broadcasts interrupts both in raid and party chat when in raid group. How can i make it announce only to raid and not in party?
Here's the code
Code:if (eventType == "SPELL_INTERRUPT") and sourceName == UnitName("player") then intmsg = ("Interrupted"); if(INStarget == true) then intmsg = (intmsg.." "..destName) end if(INSspell == true) then if(INStarget == true) then intmsg = (intmsg.."'s "..GetSpellLink(extraskillID)) else intmsg = (intmsg.." "..GetSpellLink(extraskillID)) end end if UnitInRaid("player") and (INSraid == true) then SendChatMessage(intmsg, "RAID") end if UnitInParty("player") and (INSparty == true) and (numParty > 0) then SendChatMessage(intmsg, "PARTY") end if (INSyell == true) then SendChatMessage(intmsg, "YELL") end if (INSsay == true) then SendChatMessage(intmsg, "SAY") end if (INSself == true) then print(intmsg) end end