- 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:
Parnic
2010-11-21 22:01:07 +00:00
parent b29fc849c0
commit 79bb3324ac

View File

@ -165,19 +165,23 @@ function PlayerMana.prototype:OnShow()
end end
function PlayerMana.prototype:EnteringVehicle(event, unit, arg2) function PlayerMana.prototype:EnteringVehicle(event, unit, arg2)
if (self.unit == "player" and IceHUD:ShouldSwapToVehicle(unit, arg2)) then if (self.unit == "player") then
self.unit = "vehicle" if IceHUD:ShouldSwapToVehicle(unit, arg2) then
self:RegisterFontStrings() self.unit = "vehicle"
self:Update(self.unit) self:RegisterFontStrings()
end
self:ManaType(nil, self.unit)
end end
end end
function PlayerMana.prototype:ExitingVehicle(event, unit) function PlayerMana.prototype:ExitingVehicle(event, unit)
if (unit == "player" and self.unit == "vehicle") then if (unit == "player") then
self.unit = "player" if self.unit == "vehicle" then
self:RegisterFontStrings() self.unit = "player"
self:Update(self.unit) self:RegisterFontStrings()
end
self:ManaType(nil, self.unit)
end end
end end