Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ local max = math.max;
local private = select(2,...);
local Timer = private.Timer;
local RegisterCMD = private.SetSlashCMD;
local PlaySound = PlaySound;
--local PlaySound = PlaySound;
local PlaySoundFile = PlaySoundFile;
local GetTime = GetTime;
local UnitAura = UnitAura;
local UnitAffectingCombat = UnitAffectingCombat;
Expand Down Expand Up @@ -340,7 +341,8 @@ function LossOfControlFrame_SetUpDisplay(self, animate, locType, spellID, text,
self.TimeLeft.SecondsText.scrollTime = 0;
self.Cooldown:Hide();
self:AnimPlay();
PlaySound(34468);
--PlaySound(34468);
PlaySoundFile(SOUNDKIT.UI_LOSS_OF_CONTROL_START);
end
self.priority = priority;
self.spellID = spellID;
Expand Down
5 changes: 4 additions & 1 deletion data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2197,4 +2197,7 @@ tableMixin = function(object, ...)
end
end
return object;
end
end

SOUNDKIT = SOUNDKIT or {};
SOUNDKIT.UI_LOSS_OF_CONTROL_START = "Interface\\AddOns\\pw_lossofcontrol\\sound\\34468.ogg";
Binary file added sound/34468.ogg
Binary file not shown.