Speculative fix for reported problem

There's a case where custom counters seemingly get stuck with an outdated maximum number of charges (perhaps only when augmented by a talent such as with Throw Glaive). This may catch and fix it (I couldn't reproduce the problem with a starter DH since you need level 108 or something to get the second charge for Throw Glaive).
This commit is contained in:
Parnic
2016-10-27 23:18:11 -05:00
parent d38c32cf34
commit e6f87b52bb

View File

@ -436,6 +436,12 @@ function IceCustomCount.prototype:UpdateCustomCount()
end
local points = IceStackCounter_GetCount(self)
local max = IceStackCounter_GetMaxCount(self)
if max ~= #self.frame.graphical then
self:Redraw()
return
end
if (self.moduleSettings.countMode == "Numeric") then
local r, g, b = self:GetCustomColor()