Version "Whiny rogues who file feature requests as bugs"

This commit is contained in:
iceroth
2006-12-20 22:28:22 +00:00
parent 3b93a47442
commit 9e8f57c666
3 changed files with 9 additions and 3 deletions

View File

@ -3,7 +3,7 @@
## Name: IceHUD
## Title: IceHUD |cff7fff7f -Ace2-|r
## Notes: Another HUD addon
## Version: 0.8.3 ($Revision$)
## Version: 0.8.4 ($Revision$)
## SavedVariables: IceCoreDB
## OptionalDeps: Ace2, DewdropLib, DruidBar, SoleManax, MobHealth
## X-Embeds: Ace2, DewdropLib

View File

@ -162,7 +162,13 @@ function PlayerMana.prototype:Update(unit)
end
self:SetBottomText1(self.manaPercentage)
-- extra hack for whiny rogues (are there other kind?)
local displayPercentage = self.manaPercentage
if (self.manaType == 3) then
displayPercentage = self.mana
end
self:SetBottomText1(displayPercentage)
local amount = self:GetFormattedText(self.mana, self.maxMana)

View File

@ -690,7 +690,7 @@ function TargetInfo.prototype:TargetLevel(unit)
local color = GetDifficultyColor((self.level > 0) and self.level or 100)
if (self.level > 0) then
if (UnitIsPlusMob(target)) then
if (UnitClassification(target) == "elite") then
self.level = self.level .. "+"
end
else