mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -05:00
- possible fix for a vague user-reported bug that i can't reproduce
This commit is contained in:
@ -298,6 +298,15 @@ end
|
|||||||
|
|
||||||
|
|
||||||
function IceElement.prototype:GetClassColor(class)
|
function IceElement.prototype:GetClassColor(class)
|
||||||
|
if type(class) == "table" then
|
||||||
|
local r,g,b = class
|
||||||
|
if r and g and b then
|
||||||
|
return r, g, b
|
||||||
|
else
|
||||||
|
return RAID_CLASS_COLORS["WARRIOR"]
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class = string.upper(class)
|
class = string.upper(class)
|
||||||
if RAID_CLASS_COLORS and RAID_CLASS_COLORS[class] then
|
if RAID_CLASS_COLORS and RAID_CLASS_COLORS[class] then
|
||||||
return RAID_CLASS_COLORS[class].r, RAID_CLASS_COLORS[class].g, RAID_CLASS_COLORS[class].b
|
return RAID_CLASS_COLORS[class].r, RAID_CLASS_COLORS[class].g, RAID_CLASS_COLORS[class].b
|
||||||
|
Reference in New Issue
Block a user