mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -05:00
Guard against missing GetTotemInfo API
This commit is contained in:
@ -237,7 +237,7 @@ function Totems.prototype:ResetTotemAvailability()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Totems.prototype:UpdateTotem(event, totem, ...)
|
function Totems.prototype:UpdateTotem(event, totem, ...)
|
||||||
if not totem or tonumber(totem) ~= totem or totem < 1 or totem > self.numTotems then
|
if not totem or tonumber(totem) ~= totem or totem < 1 or totem > self.numTotems or not GetTotemInfo then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local thisTotemName = self.totemNames[TOTEM_PRIORITIES[totem]]
|
local thisTotemName = self.totemNames[TOTEM_PRIORITIES[totem]]
|
||||||
@ -331,8 +331,7 @@ function Totems.prototype:CheckCombat()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Totems.prototype:CreateTotem(i, name)
|
function Totems.prototype:CreateTotem(i, name)
|
||||||
-- whiskey tango foxtrot?! apparently arenas can cause this? I can't test out the real cause myself, so putting in a stopgap for now
|
if not name or not GetTotemInfo then
|
||||||
if not name then
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local haveTotem, name, startTime, duration, icon = GetTotemInfo(i)
|
local haveTotem, name, startTime, duration, icon = GetTotemInfo(i)
|
||||||
|
Reference in New Issue
Block a user