test
This commit is contained in:
@@ -267,7 +267,7 @@ local function SoundPlay(self, options)
|
||||
SoundPlayHelper(self);
|
||||
|
||||
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);
|
||||
end
|
||||
WeakAuras.StopProfileSystem("sound");
|
||||
|
||||
@@ -40,13 +40,7 @@ function WeakAuras:Mixin(object, ...)
|
||||
end
|
||||
|
||||
function WeakAurasTimers:ScheduleTimerFixed(func, delay, ...)
|
||||
if (delay < WeakAuras.maxTimerDuration) then
|
||||
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
|
||||
return self:ScheduleTimer(func, delay, ...);
|
||||
end
|
||||
|
||||
local LDB = LibStub:GetLibrary("LibDataBroker-1.1")
|
||||
|
||||
Reference in New Issue
Block a user