From a4764e7d48a79fc8a9db890cc8a98f58641901d7 Mon Sep 17 00:00:00 2001 From: NoM0Re <1629787+NoM0Re@users.noreply.github.com> Date: Sun, 2 Nov 2025 00:02:31 +0100 Subject: [PATCH] (fix/GenericTrigger): change nameplate detection object from WatchNameplates - Fixes #80 Replaces the nameplate overlay texture with the border texture in nameplate detection logic to improve compatibility. (cherry picked from commit a39f956b11a624da84d802871b7476b8bad55d8d) --- WeakAuras/GenericTrigger.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WeakAuras/GenericTrigger.lua b/WeakAuras/GenericTrigger.lua index 804b64e..0092025 100644 --- a/WeakAuras/GenericTrigger.lua +++ b/WeakAuras/GenericTrigger.lua @@ -3882,7 +3882,7 @@ do local nameplateList = {} local visibleNameplates = {} - local OVERLAY = [=[Interface\TargetingFrame\UI-TargetingFrame-Flash]=] + local BORDER = [=[Interface\Tooltips\Nameplate-Border]=] local FSPAT = "%s*"..(gsub(gsub(FOREIGN_SERVER_LABEL, "^%s", ""), "[%*()]", "%%%1")).."$" local function nameplateShow(self) @@ -3903,8 +3903,8 @@ do local function findNewPlate(...) for i = lastChildern + 1, numChildren do local frame = select(i, ...) - local region, _, _, _, _, _, nameText = frame:GetRegions() - if (frame.UnitFrame or (region and region:GetObjectType() == "Texture" and region:GetTexture() == OVERLAY)) and not nameplateList[frame] then + local _, border, _, _, _, _, nameText = frame:GetRegions() + if (frame.UnitFrame or (border and border:GetObjectType() == "Texture" and border:GetTexture() == BORDER)) and not nameplateList[frame] then frame.nameText = nameText frame:HookScript("OnShow", nameplateShow) frame:HookScript("OnHide", nameplateHide)