change C_Timer.After

This commit is contained in:
Bunny67
2020-06-13 18:35:20 +03:00
parent c6b762342b
commit 5d45e5975f
2 changed files with 8 additions and 1 deletions
+3
View File
@@ -1234,6 +1234,9 @@ function GenericTrigger.Add(data, region)
triggerFunc = WeakAuras.LoadFunction("return "..(trigger.custom or ""), id);
if (trigger.custom_type == "stateupdate") then
tsuConditionVariables = WeakAuras.LoadFunction("return function() return \n" .. (trigger.customVariables or "") .. "\n end");
if not tsuConditionVariables then
tsuConditionVariables = function() return end
end
end
if(trigger.custom_type == "status" or trigger.custom_type == "event" and trigger.custom_hide == "custom") then
+5 -1
View File
@@ -238,7 +238,11 @@ if not C_Timer or C_Timer._version ~= 2 then
end
function C_Timer.After(duration, callback)
return CreateTicker(duration, callback, 1)
AddDelayedCall({
_remainingIterations = 1,
_delay = duration,
_callback = callback
})
end
function C_Timer.NewTimer(duration, callback)