test
This commit is contained in:
@@ -267,7 +267,7 @@ local function SoundPlay(self, options)
|
|||||||
SoundPlayHelper(self);
|
SoundPlayHelper(self);
|
||||||
|
|
||||||
local loop = options.do_loop or options.sound_type == "Loop";
|
local loop = options.do_loop or options.sound_type == "Loop";
|
||||||
if (loop and options.sound_repeat and options.sound_repeat < WeakAuras.maxTimerDuration) then
|
if (loop and options.sound_repeat) then
|
||||||
self.soundRepeatTimer = WeakAuras.timer:ScheduleRepeatingTimer(SoundPlayHelper, options.sound_repeat, self);
|
self.soundRepeatTimer = WeakAuras.timer:ScheduleRepeatingTimer(SoundPlayHelper, options.sound_repeat, self);
|
||||||
end
|
end
|
||||||
WeakAuras.StopProfileSystem("sound");
|
WeakAuras.StopProfileSystem("sound");
|
||||||
|
|||||||
@@ -40,13 +40,7 @@ function WeakAuras:Mixin(object, ...)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function WeakAurasTimers:ScheduleTimerFixed(func, delay, ...)
|
function WeakAurasTimers:ScheduleTimerFixed(func, delay, ...)
|
||||||
if (delay < WeakAuras.maxTimerDuration) then
|
return self:ScheduleTimer(func, delay, ...);
|
||||||
if delay + GetTime() > WeakAuras.maxUpTime then
|
|
||||||
WeakAuras.prettyPrint(WeakAuras.L["Can't schedule timer with %i, due to a World of Warcraft Bug with high computer uptime. (Uptime: %i). Please restart your Computer."]:format(delay, GetTime()))
|
|
||||||
return
|
|
||||||
end
|
|
||||||
return self:ScheduleTimer(func, delay, ...);
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local LDB = LibStub:GetLibrary("LibDataBroker-1.1")
|
local LDB = LibStub:GetLibrary("LibDataBroker-1.1")
|
||||||
|
|||||||
Reference in New Issue
Block a user