From a3d11391678c7a588c02b4a119480e8ca6354aae Mon Sep 17 00:00:00 2001 From: jordonwow <29447509+jordonwow@users.noreply.github.com> Date: Tue, 24 Sep 2024 05:06:45 -0700 Subject: [PATCH] Fix for ElvUI player frame (fixes #781) --- BigDebuffs.lua | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/BigDebuffs.lua b/BigDebuffs.lua index b727f34..a317167 100644 --- a/BigDebuffs.lua +++ b/BigDebuffs.lua @@ -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]