Always update aura durations

If we're coming from a custom update func, it could mean that we're
tracking a unit that doesn't get events, like UNIT_AURA, for them. This
includes anything other than player, target, and focus, essentially.
This commit is contained in:
Parnic
2021-06-26 14:14:57 -05:00
parent 94b62d56a0
commit dfcef9617f

View File

@ -752,7 +752,7 @@ function IceCustomBar.prototype:UpdateCustomBar(unit, fromUpdate)
local auraIcon = nil
local endTime = 0
if not fromUpdate then
--if not fromUpdate then
if tonumber(self.moduleSettings.buffToTrack) == nil then
self.auraDuration, remaining, self.auraBuffCount, auraIcon, endTime =
self:GetAuraDuration(self.unit, self.moduleSettings.buffToTrack)
@ -787,7 +787,7 @@ function IceCustomBar.prototype:UpdateCustomBar(unit, fromUpdate)
else
self.barFrame.icon:Hide()
end
end
--end
self.auraBuffCount = self.auraBuffCount or 0