unitframes-classcolor: improve player detection
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user