From bbf9cb14ae449b76098dc607580bb2e03732e436 Mon Sep 17 00:00:00 2001 From: NoM0Re Date: Wed, 12 Mar 2025 15:20:52 +0100 Subject: [PATCH] (fix)Resolve Overlay issues finally --- WeakAuras/GenericTrigger.lua | 2 +- WeakAuras/RegionTypes/RegionPrototype.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WeakAuras/GenericTrigger.lua b/WeakAuras/GenericTrigger.lua index af0d338..65c6744 100644 --- a/WeakAuras/GenericTrigger.lua +++ b/WeakAuras/GenericTrigger.lua @@ -470,7 +470,7 @@ local function RunOverlayFuncs(event, state, id, errorHandler) local additionalProgress = state.additionalProgress[i]; local ok, a, b, c = pcall(overlayFunc, event.trigger, state); if (not ok) then - (errorHandler or Private.GetErrorHandlerId(id, L["Overlay %s"]:format(i)))(a) + if errorHandler then errorHandler(a) else Private.GetErrorHandlerId(id, L["Overlay %s"]:format(i)) end additionalProgress.min = nil; additionalProgress.max = nil; additionalProgress.direction = nil; diff --git a/WeakAuras/RegionTypes/RegionPrototype.lua b/WeakAuras/RegionTypes/RegionPrototype.lua index 65c215b..4ccac8f 100644 --- a/WeakAuras/RegionTypes/RegionPrototype.lua +++ b/WeakAuras/RegionTypes/RegionPrototype.lua @@ -541,7 +541,7 @@ local function UpdateProgressFromState(self, minMaxConfig, state, progressSource end local autoTimedProgressSource = {-1, "timer", "expirationTime", "duration", "inverse", "paused", "remaining", true} -local autoStaticProgressSource = {-1, "number", "value", "total", nil, nil, nil, nil, true} +local autoStaticProgressSource = {-1, "number", "value", "total", nil, nil, nil, true} local function UpdateProgressFromAuto(self, minMaxConfig, state) if state.progressType == "timed" then UpdateProgressFromState(self, minMaxConfig, state, autoTimedProgressSource)