- fixed some errors that could pop up with totems and custom bars

This commit is contained in:
Parnic
2010-12-08 14:29:47 +00:00
parent 6eda5b5f9d
commit 9257809e38

View File

@ -501,7 +501,7 @@ function IceCustomBar.prototype:GetAuraDuration(unitName, buffName)
return offHandExpiration/1000, offHandExpiration/1000, offHandCharges, GetInventoryItemTexture("player", slotId)
end
return nil, nil, nil, nil
return nil
end
local i = 1
@ -535,6 +535,7 @@ function IceCustomBar.prototype:GetAuraDuration(unitName, buffName)
for i=1,MAX_TOTEMS do
local haveTotem, totemName, startTime, realDuration, icon = GetTotemInfo(i)
if haveTotem and totemName then
if self.moduleSettings.maxDuration and self.moduleSettings.maxDuration ~= 0 then
duration = self.moduleSettings.maxDuration
else
@ -549,8 +550,9 @@ function IceCustomBar.prototype:GetAuraDuration(unitName, buffName)
end
end
end
end
return nil, nil, nil, nil
return nil
end
function IceCustomBar.prototype:UpdateCustomBarEvent(event, unit)