Fix lua error in namecolor tag
This commit is contained in:
parent
2455c076b0
commit
bcf45a2188
1 changed files with 4 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue