nameplates: use proper target glow detection

This commit is contained in:
shagu
2019-08-02 18:03:11 +02:00
parent b0f338204f
commit 7beda0fc5b
+2 -2
View File
@@ -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()