mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- fixed the player's health and mana bars monitoring the wrong unit whenever the player leaves an instance while in a vehicle
This commit is contained in:
@ -908,6 +908,7 @@ end
|
||||
|
||||
|
||||
function PlayerHealth.prototype:EnteringWorld()
|
||||
self:CheckVehicle()
|
||||
self:CheckCombat()
|
||||
self:CheckLeader()
|
||||
self:CheckPartyRole()
|
||||
@ -916,6 +917,14 @@ function PlayerHealth.prototype:EnteringWorld()
|
||||
self:Resting()
|
||||
end
|
||||
|
||||
function PlayerHealth.prototype:CheckVehicle()
|
||||
if UnitHasVehicleUI("player") then
|
||||
self:EnteringVehicle(nil, "player", true)
|
||||
else
|
||||
self:ExitingVehicle(nil, "player")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
function PlayerHealth.prototype:Resting()
|
||||
self.resting = IsResting()
|
||||
|
Reference in New Issue
Block a user