Skip to content

Commit

Permalink
Fix for ElvUI player frame (fixes #781)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordonwow committed Sep 24, 2024
1 parent 2b1f505 commit a3d1139
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion BigDebuffs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,17 @@ local GetAnchor = {
end
end

if unit and (unit:match("party") or unit:match("player")) then
if unit and unit:match("player") then
local unitGUID = UnitGUID(unit)
local elvUIFrame = _G["ElvUF_Player"]
if elvUIFrame and elvUIFrame:IsVisible() and elvUIFrame.unit then
if unitGUID == UnitGUID(elvUIFrame.unit) then
return elvUIFrame
end
end
end

if unit and unit:match("party") then
local unitGUID = UnitGUID(unit)
for i = 1, 5, 1 do
local elvUIFrame = _G["ElvUF_PartyGroup1UnitButton" .. i]
Expand Down

0 comments on commit a3d1139

Please sign in to comment.