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 end
-- target indicator -- 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() healthbar.bgtarget:Show()
else else
healthbar.bgtarget:Hide() healthbar.bgtarget:Hide()
end end
-- glow target indicator -- 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() healthbar.glowtarget:Show()
else else
healthbar.glowtarget:Hide() healthbar.glowtarget:Hide()