mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- 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:
@ -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)
|
||||
|
Reference in New Issue
Block a user