mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- attempt to fix ticket #81
This commit is contained in:
@ -151,6 +151,11 @@ function EclipseBar.prototype:UpdateEclipsePower()
|
||||
local power = UnitPower("player", SPELL_POWER_ECLIPSE)
|
||||
local maxPower = UnitPowerMax("player", SPELL_POWER_ECLIPSE)
|
||||
|
||||
-- bad api, bad.
|
||||
if maxPower <= 0 or power > maxPower then
|
||||
return
|
||||
end
|
||||
|
||||
self:SetBottomText1(abs((power/maxPower) * 100))
|
||||
|
||||
local pos = (power/maxPower) / 2
|
||||
|
Reference in New Issue
Block a user