From 1ec6510158c18c290e977055da15f2d2f3d74fad Mon Sep 17 00:00:00 2001 From: Parnic Date: Tue, 20 Jan 2009 00:52:44 +0000 Subject: [PATCH] - possible fix for a vague user-reported bug that i can't reproduce --- IceElement.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/IceElement.lua b/IceElement.lua index a231b82..48d8c1a 100644 --- a/IceElement.lua +++ b/IceElement.lua @@ -298,6 +298,15 @@ end 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) 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