Backport event TRIGGER:x support from mainline
https://github.com/WeakAuras/WeakAuras2/commit/3ab97ddce48e6ba46b49a7fdb36a4efa2d1c935b#diff-06c2316487fbaca0f482a162e763ad96ce5624a012a6d5417653b2068d144dfdR119
This commit is contained in:
@@ -64,6 +64,8 @@ local timer = WeakAuras.timer
|
||||
local BuffTrigger = {}
|
||||
local triggerInfos = {}
|
||||
|
||||
local watched_trigger_events = Private.watched_trigger_events
|
||||
|
||||
-- keyed on unit, debuffType, spellname, with a scan object value
|
||||
-- scan object: id, triggernum, scanFunc
|
||||
local scanFuncName = {}
|
||||
@@ -1348,6 +1350,13 @@ local function UpdateTriggerState(time, id, triggernum)
|
||||
triggerInfo.nextScheduledCheckHandle = nil
|
||||
triggerInfo.nextScheduledCheck = nil
|
||||
end
|
||||
|
||||
-- if the trigger has updated then check to see if it is flagged for WatchedTrigger and send to queue if it is
|
||||
if updated then
|
||||
if watched_trigger_events[id] and watched_trigger_events[id][triggernum] then
|
||||
Private.AddToWatchedTriggerDelay(id, triggernum)
|
||||
end
|
||||
end
|
||||
|
||||
return updated
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user