From 7beda0fc5bcb57d59142ad955ea3225d09f9d16e Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 2 Aug 2019 18:03:11 +0200 Subject: [PATCH] nameplates: use proper target glow detection --- modules/nameplates.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index 2f998102..4c8b8384 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -463,14 +463,14 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function () end -- target indicator - if UnitExists("target") and healthbar:GetAlpha() == 1 and C.nameplates.targethighlight == "1" then + if UnitExists("target") and this:GetAlpha() == 1 and C.nameplates.targethighlight == "1" then healthbar.bgtarget:Show() else healthbar.bgtarget:Hide() end -- glow target indicator - if UnitExists("target") and healthbar:GetAlpha() == 1 and C.nameplates.targetglow == "1" then + if UnitExists("target") and this:GetAlpha() == 1 and C.nameplates.targetglow == "1" then healthbar.glowtarget:Show() else healthbar.glowtarget:Hide()