mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- re-fixed a bug causing the player mana module to not update color when a druid left an LFD instance while in a form and was immediately placed back on a mount and not in a form
This commit is contained in:
@ -165,19 +165,23 @@ function PlayerMana.prototype:OnShow()
|
||||
end
|
||||
|
||||
function PlayerMana.prototype:EnteringVehicle(event, unit, arg2)
|
||||
if (self.unit == "player" and IceHUD:ShouldSwapToVehicle(unit, arg2)) then
|
||||
if (self.unit == "player") then
|
||||
if IceHUD:ShouldSwapToVehicle(unit, arg2) then
|
||||
self.unit = "vehicle"
|
||||
self:RegisterFontStrings()
|
||||
self:Update(self.unit)
|
||||
end
|
||||
self:ManaType(nil, self.unit)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
function PlayerMana.prototype:ExitingVehicle(event, unit)
|
||||
if (unit == "player" and self.unit == "vehicle") then
|
||||
if (unit == "player") then
|
||||
if self.unit == "vehicle" then
|
||||
self.unit = "player"
|
||||
self:RegisterFontStrings()
|
||||
self:Update(self.unit)
|
||||
end
|
||||
self:ManaType(nil, self.unit)
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user