mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- Fixed bug with the player's mana bar not updating its alpha properly when entering the world (i.e. teleporting/hearthing/etc.).
This commit is contained in:
@ -120,7 +120,7 @@ function PlayerMana.prototype:Enable(core)
|
|||||||
|
|
||||||
self:RegisterEvent("UNIT_ENTERED_VEHICLE", "EnteringVehicle")
|
self:RegisterEvent("UNIT_ENTERED_VEHICLE", "EnteringVehicle")
|
||||||
self:RegisterEvent("UNIT_EXITED_VEHICLE", "ExitingVehicle")
|
self:RegisterEvent("UNIT_EXITED_VEHICLE", "ExitingVehicle")
|
||||||
self:RegisterEvent("PLAYER_ENTERING_WORLD", "CheckVehicle")
|
self:RegisterEvent("PLAYER_ENTERING_WORLD", "EnteringWorld")
|
||||||
|
|
||||||
if not self.CustomOnUpdate then
|
if not self.CustomOnUpdate then
|
||||||
self.CustomOnUpdate = function() self:Update(self.unit) end
|
self.CustomOnUpdate = function() self:Update(self.unit) end
|
||||||
@ -133,6 +133,11 @@ function PlayerMana.prototype:Enable(core)
|
|||||||
self:ManaType(nil, self.unit)
|
self:ManaType(nil, self.unit)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function PlayerMana.prototype:EnteringWorld()
|
||||||
|
self:CheckVehicle()
|
||||||
|
self:CheckCombat()
|
||||||
|
end
|
||||||
|
|
||||||
function PlayerMana.prototype:CheckVehicle()
|
function PlayerMana.prototype:CheckVehicle()
|
||||||
if UnitHasVehicleUI("player") then
|
if UnitHasVehicleUI("player") then
|
||||||
self:EnteringVehicle(nil, "player", true)
|
self:EnteringVehicle(nil, "player", true)
|
||||||
|
Reference in New Issue
Block a user