- added code to buff/debuff watchers and cooldown watchers to prevent them from sometimes getting stuck (not updating/animating)

This commit is contained in:
Parnic
2011-12-06 03:51:22 +00:00
parent 6e4b194900
commit d7e4bfbee2
3 changed files with 11 additions and 1 deletions

View File

@ -72,9 +72,11 @@ function IceCustomBar.prototype:ConditionalSubscribe()
self.CustomBarUpdateFunc = function() self:UpdateCustomBar() end
end
self.handlesOwnUpdates = true
IceHUD.IceCore:RequestUpdates(self, self.CustomBarUpdateFunc)
end
else
self.handlesOwnUpdates = false
IceHUD.IceCore:RequestUpdates(self, nil)
end
end
@ -700,6 +702,7 @@ function IceCustomBar.prototype:UpdateCustomBar(unit, fromUpdate)
self.UpdateCustomBarFunc = function() self:UpdateCustomBar(self.unit, true) end
end
self.handlesOwnUpdates = true
IceHUD.IceCore:RequestUpdates(self, self.UpdateCustomBarFunc)
end
@ -718,6 +721,7 @@ function IceCustomBar.prototype:UpdateCustomBar(unit, fromUpdate)
self:UpdateBar(0, "undef")
self:Show(false)
if not self:ShouldAlwaysSubscribe() then
self.handlesOwnUpdates = false
IceHUD.IceCore:RequestUpdates(self, nil)
end
end