From ef02b36fcd9732647cc4cad1da3fd9265970081e Mon Sep 17 00:00:00 2001 From: G1t-Happens <44774729+G1t-Happens@users.noreply.github.com> Date: Wed, 11 Sep 2024 09:07:13 +0200 Subject: [PATCH] fix: check for PlayerFrameContainer only if we are on retail (doesnt exist on classic, cata ...) (#788) --- BigDebuffs.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/BigDebuffs.lua b/BigDebuffs.lua index e2a3438..b727f34 100644 --- a/BigDebuffs.lua +++ b/BigDebuffs.lua @@ -2188,12 +2188,13 @@ function BigDebuffs:UNIT_AURA(unit) frame.mask:SetAllPoints(frame.icon) frame.mask:SetTexture("Interface/CHARACTERFRAME/TempPortraitAlphaMask", "CLAMPTOBLACKADDITIVE", "CLAMPTOBLACKADDITIVE") if frame.unit == "player" then - - local container = PlayerFrame.PlayerFrameContainer - -- set the frame.mask atlas only if the new frame textures are actually present (4642466) - if (container.AlternatePowerFrameTexture and container.AlternatePowerFrameTexture:GetTexture() == 4642466) - or (container.FrameTexture and container.FrameTexture:GetTexture() == 4642466) then - frame.mask:SetAtlas("UI-HUD-UnitFrame-Player-Portrait-Mask", _G.TextureKitConstants.UseAtlasSize) + if WOW_PROJECT_ID == WOW_PROJECT_MAINLINE then + local container = PlayerFrame.PlayerFrameContainer + -- set the frame.mask atlas only if the new frame textures are actually present (4642466) + if (container.AlternatePowerFrameTexture and container.AlternatePowerFrameTexture:GetTexture() == 4642466) + or (container.FrameTexture and container.FrameTexture:GetTexture() == 4642466) then + frame.mask:SetAtlas("UI-HUD-UnitFrame-Player-Portrait-Mask", _G.TextureKitConstants.UseAtlasSize) + end end end frame.icon:AddMaskTexture(frame.mask)