diff --git a/WeakAuras/Prototypes.lua b/WeakAuras/Prototypes.lua index 21c9399..3007e2b 100644 --- a/WeakAuras/Prototypes.lua +++ b/WeakAuras/Prototypes.lua @@ -4751,7 +4751,7 @@ WeakAuras.event_prototypes = { local remainingCheck = %s local inverseTrigger = %s - local show, expirationTime, castType, spell, icon, startTime, endTime, interruptible, remaining + local show, expirationTime, castType, spell, icon, startTime, endTime, interruptible, remaining, _ spell, _, _, icon, startTime, endTime, _, _, interruptible = UnitCastingInfo(unit) if spell then diff --git a/WeakAuras/RegionTypes/Icon.lua b/WeakAuras/RegionTypes/Icon.lua index 7a57454..525cdf1 100644 --- a/WeakAuras/RegionTypes/Icon.lua +++ b/WeakAuras/RegionTypes/Icon.lua @@ -391,7 +391,7 @@ local function modify(parent, region, data) or data.displayIcon or "Interface\\Icons\\INV_Misc_QuestionMark" ); - icon:SetTexture(iconPath); + icon:SetTexture(iconPath) icon:SetDesaturated(data.desaturate); end diff --git a/WeakAurasOptions/RegionOptions/Icon.lua b/WeakAurasOptions/RegionOptions/Icon.lua index 647fcd6..34c7a61 100644 --- a/WeakAurasOptions/RegionOptions/Icon.lua +++ b/WeakAurasOptions/RegionOptions/Icon.lua @@ -231,10 +231,8 @@ local function modifyThumbnail(parent, frame, data) frame:SetParent(parent) function frame:SetIcon(path) - local success = self.icon:SetTexture(data.auto and path or data.displayIcon) and (data.auto and path or data.displayIcon); - if not(success) then - self.icon:SetTexture("Interface\\Icons\\INV_Misc_QuestionMark"); - end + local iconPath = data.auto and path or data.displayIcon or "Interface\\Icons\\INV_Misc_QuestionMark" + self.icon:SetTexture(iconPath) end if data then