- fixed a bug with PlayerMana disabling OnUpdate code for warriors and DK's when their bar was full instead of when it is empty

- fixed a bug with DK runes appearing to be available as soon as a fight was done instead of when they actually became available again
This commit is contained in:
Parnic
2008-11-03 02:52:57 +00:00
parent efcbb55286
commit 2f1181b5ea
2 changed files with 7 additions and 6 deletions

View File

@ -195,7 +195,9 @@ function PlayerMana.prototype:Update(unit)
return
end
if self.manaPercentage == 1 then
local powerType = UnitPowerType(self.unit)
if (self.manaPercentage == 1 and powerType ~= 1 and powerType ~= 6)
or (self.manaPercentage == 0 and (powerType == 1 or powerType == 6)) then
self:SetupOnUpdate(false)
elseif GetCVarBool("predictedPower") then
self:SetupOnUpdate(true)