This commit is contained in:
Tercio Jose
2022-07-23 13:44:05 -03:00
parent 74996ae757
commit 39ec2f2f3b
3 changed files with 125 additions and 65 deletions
+3 -3
View File
@@ -352,7 +352,7 @@ LIB_OPEN_RAID_CAN_LOAD = false
local currentSchedule = registeredUniqueTimers[namespace] and registeredUniqueTimers[namespace][scheduleName]
if (currentSchedule) then
if (not currentSchedule._cancelled) then
if (not currentSchedule:IsCancelled()) then
currentSchedule:Cancel()
end
registeredUniqueTimers[namespace][scheduleName] = nil
@@ -364,7 +364,7 @@ LIB_OPEN_RAID_CAN_LOAD = false
local registeredUniqueTimers = openRaidLib.Schedules.registeredUniqueTimers
for namespace, schedulesTable in pairs(registeredUniqueTimers) do
for scheduleName, timerObject in pairs (schedulesTable) do
if (timerObject and not timerObject._cancelled) then
if (timerObject and not timerObject:IsCancelled()) then
timerObject:Cancel()
end
end
@@ -1436,7 +1436,7 @@ local cooldownStartTicker = function(spellId, cooldownTimeLeft)
end
--cancel the existing ticker
if (not existingTicker._cancelled) then
if (not existingTicker:IsCancelled()) then
existingTicker:Cancel()
end
end