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:
14
IceHUD.lua
14
IceHUD.lua
@ -851,3 +851,17 @@ function IceHUD:Clamp(value, min, max)
|
||||
|
||||
return value
|
||||
end
|
||||
|
||||
function IceHUD:ShouldSwapToVehicle(...)
|
||||
local arg1, arg2 = ...
|
||||
|
||||
if (arg1 == "player") then
|
||||
if (arg2) then
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
if (UnitHasVehicleUI("player")) then
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user