diff --git a/Widgets/Auras/Auras.lua b/Widgets/Auras/Auras.lua index e66572f..ef15d8b 100644 --- a/Widgets/Auras/Auras.lua +++ b/Widgets/Auras/Auras.lua @@ -219,7 +219,7 @@ end ------------------------------------------------- ---@param self CellAuraIcons -function EnableAuras(self) -- Has unique name because of some obscure referncing bug? +local function Enable(self) -- Has unique name because of some obscure referncing bug? self._owner:AddEventListener("UNIT_AURA", self.Update) self:Show() @@ -227,7 +227,7 @@ function EnableAuras(self) -- Has unique name because of some obscure referncing end ---@param self CellAuraIcons -function Disable(self) +local function Disable(self) self._owner:RemoveEventListener("UNIT_AURA", self.Update) end @@ -303,7 +303,7 @@ function W:CreateAuraIcons(button, type) auraIcons:ShowAnimation(true) auraIcons:ShowStack(true) - auraIcons.Enable = EnableAuras + auraIcons.Enable = Enable auraIcons.Disable = Disable auraIcons.Update = U.UnitFrame_UpdateAuras diff --git a/Widgets/Bars/CastBar.lua b/Widgets/Bars/CastBar.lua index db06be3..6bd5bdc 100644 --- a/Widgets/Bars/CastBar.lua +++ b/Widgets/Bars/CastBar.lua @@ -413,7 +413,7 @@ end ------------------------------------------------- ---@param button CUFUnitButton -function Update(button) +local function Update(button) local castBar = button.widgets.castBar if not castBar then return end @@ -432,7 +432,7 @@ end -- Register/Unregister events for CastBar ---@param self CastBarWidget -function Enable(self) +local function Enable(self) local button = self._owner button:AddEventListener("UNIT_SPELLCAST_START", CastStart)