Skip to content

Commit

Permalink
Bugfix for TWW
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbuds committed Jun 14, 2024
1 parent 51ee26b commit 4a6d018
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions LibGetFrame-1.0.lua
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4a6d018

Please sign in to comment.