Fix lua error in namecolor tag

This commit is contained in:
Andrew6810
2022-11-05 21:40:07 -07:00
parent 2455c076b0
commit bcf45a2188
+4 -1
View File
@@ -301,7 +301,10 @@ ElvUF.Tags.Methods["namecolor"] = function(unit)
else
local _, class = UnitClass(unit)
local color = RAID_CLASS_COLORS[class]
return Hex(color.r, color.g, color.b)
if not color then
return Hex(1, 1, 1)
end
return color.hex
end
elseif unitReaction then
local reaction = ElvUF.colors.reaction[unitReaction]