Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions correction.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ local C_MountJournal_GetMountInfoByID = _G.C_MountJournal.GetMountInfoByID
local C_MountJournal_GetMountIDs = _G.C_MountJournal.GetMountIDs
local GetShapeshiftFormID = _G.GetShapeshiftFormID
local IsMounted = _G.IsMounted
local UnitBuff = _G.UnitBuff
local UnitBuff = C_TooltipInfo.GetUnitBuff
local UnitClass = _G.UnitClass
local UnitInVehicle = _G.UnitInVehicle
local UnitGUID = _G.UnitGUID
Expand Down Expand Up @@ -477,4 +477,3 @@ function cosFix:CorrectShoulderOffset(enteringVehicleGuid)
return returnValue

end

20 changes: 19 additions & 1 deletion events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,24 @@ local tremove = _G.tremove
local tinsert = _G.tinsert
local unpack = _G.unpack

local C_MountJournal_GetMountInfoByID = _G.C_MountJournal.GetMountInfoByID
local function SafeMountInfoByID(mountID)
if not mountID or type(mountID) ~= "number" then
return nil, nil, nil, nil, nil
end

local f
if C_MountJournal then
f = C_MountJournal.GetMountInfoByID or C_MountJournal.GetMountInfo
end

if f then
return f(mountID)
end

return nil, nil, nil, nil, nil
end

local C_MountJournal_GetMountInfoByID = SafeMountInfoByID
local GetShapeshiftFormID = _G.GetShapeshiftFormID
local InCombatLockdown = _G.InCombatLockdown
local IsIndoors = _G.IsIndoors
Expand Down Expand Up @@ -907,3 +924,4 @@ function cosFix:RegisterEvents()

end