My bad didn't check that. Then this should do it:
Lua Code:
local Blinding_Peck = GetSpellInfo(195561)
local Group_UnitIDs = {
player = true,
party1 = true,
party2 = true,
party3 = true,
party4 = true
}
local frame = CreateFrame("FRAME")
frame:RegisterEvent("UNIT_AURA")
frame:SetScript("OnEvent", function(self, event, unitID)
if Group_UnitIDs[unitID] and UnitDebuff(unitID, Blinding_Peck) then
PlaySoundFile("Interface\\AddOns\\Segullspeck\\media\\Seagullspeck.ogg", "Master")
end
end)