- 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:
Parnic
2010-10-30 02:56:13 +00:00
parent 2fa96e6d60
commit 9599ed33cd

View File

@ -189,6 +189,11 @@ function PlayerMana.prototype:Redraw()
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)
if (unit ~= self.unit) then