View Single Post
06-21-17, 01:55 AM   #4
pas06
A Theradrim Guardian
Join Date: Apr 2009
Posts: 62
My bad didn't check that. Then this should do it:

Lua Code:
  1. local Blinding_Peck = GetSpellInfo(195561)
  2. local Group_UnitIDs = {
  3. player = true,
  4. party1 = true,
  5. party2 = true,
  6. party3 = true,
  7. party4 = true
  8. }
  9. local frame = CreateFrame("FRAME")
  10.  
  11. frame:RegisterEvent("UNIT_AURA")
  12.  
  13. frame:SetScript("OnEvent", function(self, event, unitID)
  14.    
  15.     if Group_UnitIDs[unitID] and UnitDebuff(unitID, Blinding_Peck) then
  16.         PlaySoundFile("Interface\\AddOns\\Segullspeck\\media\\Seagullspeck.ogg", "Master")
  17.     end
  18. end)
  Reply With Quote