From e6f87b52bb4229a0bf4d2883d217b1fc2c79c4f2 Mon Sep 17 00:00:00 2001 From: Parnic Date: Thu, 27 Oct 2016 23:18:11 -0500 Subject: [PATCH] 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). --- modules/CustomCount.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/CustomCount.lua b/modules/CustomCount.lua index f178aef..1cc15e3 100644 --- a/modules/CustomCount.lua +++ b/modules/CustomCount.lua @@ -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()