From 4a6d018cafdc88294fc6d6557689987d3f6d4621 Mon Sep 17 00:00:00 2001 From: Buds Date: Fri, 14 Jun 2024 19:22:48 +0200 Subject: [PATCH] Bugfix for TWW --- LibGetFrame-1.0.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/LibGetFrame-1.0.lua b/LibGetFrame-1.0.lua index 4c82d3f..12b9700 100644 --- a/LibGetFrame-1.0.lua +++ b/LibGetFrame-1.0.lua @@ -1,5 +1,5 @@ local MAJOR_VERSION = "LibGetFrame-1.0" -local MINOR_VERSION = 57 +local MINOR_VERSION = 58 if not LibStub then error(MAJOR_VERSION .. " requires LibStub.") end @@ -11,8 +11,8 @@ end lib.callbacks = lib.callbacks or LibStub("CallbackHandler-1.0"):New(lib) local callbacks = lib.callbacks -local GetPlayerInfoByGUID, UnitExists, IsAddOnLoaded, C_Timer, UnitIsUnit, SecureButton_GetUnit = - GetPlayerInfoByGUID, UnitExists, IsAddOnLoaded, C_Timer, UnitIsUnit, SecureButton_GetUnit +local GetPlayerInfoByGUID, UnitExists, C_Timer, UnitIsUnit, SecureButton_GetUnit, C_AddOns = + GetPlayerInfoByGUID, UnitExists, C_Timer, UnitIsUnit, SecureButton_GetUnit, C_AddOns local tinsert, CopyTable, wipe = tinsert, CopyTable, wipe local maxDepth = 50 @@ -435,7 +435,7 @@ local function GetUnitFrames(target, ignoredFrames) end local function ElvuiWorkaround(frame) - if IsAddOnLoaded("ElvUI") and frame and frame:GetName():find("^ElvUF_") and frame.Health then + if C_AddOns.IsAddOnLoaded("ElvUI") and frame and frame:GetName():find("^ElvUF_") and frame.Health then return frame.Health else return frame