unitframes-classcolor: improve player detection

This commit is contained in:
shagu
2021-12-06 14:56:26 +01:00
parent ef75524344
commit 770ca06441
+1 -1
View File
@@ -25,7 +25,7 @@ module.enable = function(self)
local reaction = UnitReaction("target", "player")
if UnitPlayerControlled("target") then
if UnitIsPlayer("target") then
local _, class = UnitClass("target")
local class = RAID_CLASS_COLORS[class] or { r = .5, g = .5, b = .5, a = 1 }
TargetFrameNameBackground:SetVertexColor(class.r, class.g, class.b, 1)