- made the GetDifficultyColor change slightly more backward-compatible

This commit is contained in:
Parnic
2009-07-18 05:48:42 +00:00
parent 759c49e908
commit 2835f2d2f8

View File

@ -1194,8 +1194,9 @@ end
function IceTargetInfo.prototype:TargetLevel(unit)
if (unit == self.unit or unit == internal) then
self.level = UnitLevel(self.unit)
local color = GetQuestDifficultyColor((self.level > 0) and self.level or 100)
local colorFunc = GetQuestDifficultyColor or GetDifficultyColor
local color = colorFunc((self.level > 0) and self.level or 100)
if (self.level > 0) then
if (UnitClassification(self.unit) == "elite") then