diff --git a/EllesmereUIDamageMeters/EllesmereUIDamageMeters.lua b/EllesmereUIDamageMeters/EllesmereUIDamageMeters.lua index 5c91c65e..9e95f7c4 100644 --- a/EllesmereUIDamageMeters/EllesmereUIDamageMeters.lua +++ b/EllesmereUIDamageMeters/EllesmereUIDamageMeters.lua @@ -3064,7 +3064,7 @@ local function CreateDMWindow(winIdx) --------------------------------------------------------------------------- W.resizeGrip = CreateFrame("Button", nil, frame) W.resizeGrip:SetSize(18, 18); W.resizeGrip:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", -2, 2) - W.resizeGrip:SetFrameStrata("HIGH"); W.resizeGrip:SetFrameLevel(frame:GetFrameLevel() + 15) + W.resizeGrip:SetFrameLevel(frame:GetFrameLevel() + 15) local gripTex = W.resizeGrip:CreateTexture(nil, "ARTWORK"); gripTex:SetAllPoints() gripTex:SetTexture(RESIZE_ICON); gripTex:SetDesaturated(true); gripTex:SetVertexColor(1, 1, 1) W.resizeGrip:EnableMouse(true); W.resizeGrip:SetAlpha(0) @@ -3074,7 +3074,7 @@ local function CreateDMWindow(winIdx) -- Lock icon (shows/hides with resize grip, click toggles lock state) W.lockBtn = CreateFrame("Button", nil, frame) W.lockBtn:SetSize(13, 17) - W.lockBtn:SetFrameStrata("HIGH"); W.lockBtn:SetFrameLevel(frame:GetFrameLevel() + 16) + W.lockBtn:SetFrameLevel(frame:GetFrameLevel() + 16) W.lockBtn:EnableMouse(true); W.lockBtn:SetAlpha(0) local lockTex = W.lockBtn:CreateTexture(nil, "ARTWORK"); lockTex:SetAllPoints() lockTex:SetDesaturated(true); lockTex:SetVertexColor(1, 1, 1) diff --git a/EllesmereUIUnitFrames/EllesmereUIUnitFrames.lua b/EllesmereUIUnitFrames/EllesmereUIUnitFrames.lua index 3ecbedc5..35b5df49 100644 --- a/EllesmereUIUnitFrames/EllesmereUIUnitFrames.lua +++ b/EllesmereUIUnitFrames/EllesmereUIUnitFrames.lua @@ -6002,7 +6002,7 @@ local function SetupShowOnCastBar(frame, unit) if self.Target then local spellTarget, spellTargetClass local ownerUnit = self.__owner and self.__owner.unit - if ownerUnit and ownerUnit ~= "player" + if ownerUnit and UnitShouldDisplaySpellTargetName and UnitShouldDisplaySpellTargetName(ownerUnit) then local rawTarget = UnitSpellTargetName and UnitSpellTargetName(ownerUnit) if rawTarget then