mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- maybe fix some vehicle issues in ulduar
This commit is contained in:
@ -142,8 +142,8 @@ function PlayerMana.prototype:SetupOnUpdate(enable)
|
||||
end
|
||||
|
||||
|
||||
function PlayerMana.prototype:EnteringVehicle(unit)
|
||||
if (unit == "player") then
|
||||
function PlayerMana.prototype:EnteringVehicle(unit, arg2)
|
||||
if (self.unit == "player" and IceHUD:ShouldSwapToVehicle(unit, arg2)) then
|
||||
self.unit = "vehicle"
|
||||
self:RegisterFontStrings()
|
||||
self:Update(self.unit)
|
||||
@ -152,7 +152,7 @@ end
|
||||
|
||||
|
||||
function PlayerMana.prototype:ExitingVehicle(unit)
|
||||
if (unit == "player") then
|
||||
if (unit == "player" and self.unit == "vehicle") then
|
||||
self.unit = "player"
|
||||
self:RegisterFontStrings()
|
||||
self:Update(self.unit)
|
||||
|
Reference in New Issue
Block a user