mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- added a check for the player's mana type when PLAYER_ENTERING_WORLD fires so that we adjust properly when entering/leaving instances
This commit is contained in:
@ -189,6 +189,11 @@ function PlayerMana.prototype:Redraw()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- CheckCombat is hooked down in IceElement as PLAYER_ENTERING_WORLD, so hijack it for a mana check
|
||||||
|
function PlayerMana.prototype:CheckCombat()
|
||||||
|
PlayerMana.super.prototype.CheckCombat(self)
|
||||||
|
self:ManaType(nil, self.unit)
|
||||||
|
end
|
||||||
|
|
||||||
function PlayerMana.prototype:ManaType(event, unit)
|
function PlayerMana.prototype:ManaType(event, unit)
|
||||||
if (unit ~= self.unit) then
|
if (unit ~= self.unit) then
|
||||||
|
Reference in New Issue
Block a user