diff --git a/DBM-Core/DBM-Core.lua b/DBM-Core/DBM-Core.lua index c446f289..4f1892b3 100644 --- a/DBM-Core/DBM-Core.lua +++ b/DBM-Core/DBM-Core.lua @@ -82,7 +82,7 @@ local function currentFullDate() end DBM = { - Revision = parseCurseDate("20241207225353"), + Revision = parseCurseDate("20241208000140"), DisplayVersion = "10.1.13 alpha", -- the string that is shown as version ReleaseRevision = releaseDate(2024, 07, 20) -- the date of the latest stable version that is available, optionally pass hours, minutes, and seconds for multiple releases in one day } diff --git a/DBM-StatusBarTimers/DBT.lua b/DBM-StatusBarTimers/DBT.lua index b4d535ea..e026fe8b 100755 --- a/DBM-StatusBarTimers/DBT.lua +++ b/DBM-StatusBarTimers/DBT.lua @@ -398,7 +398,7 @@ do newFrame.obj = newBar end self.numBars = self.numBars + 1 - if ((colorType and colorType == 7 and self.Options.Bar7ForceLarge) or (timer <= (self.Options.EnlargeBarTime or 11) or huge)) and self.Options.HugeBarsEnabled then -- Start enlarged + if ((colorType and colorType == 7 and self.Options.Bar7ForceLarge) or ((varianceMinTimer or timer) <= (self.Options.EnlargeBarTime or 11) or huge)) and self.Options.HugeBarsEnabled then -- Start enlarged newBar.enlarged = true newBar.huge = true tinsert(largeBars, newBar) @@ -849,6 +849,7 @@ function barPrototype:Update(elapsed) local paused = self.paused self.timer = self.timer - (paused and 0 or elapsed) local timerValue = self.timer + local timerLowestValueFromVariance = self.varianceDuration and timerValue - self.varianceDuration or timerValue local totaltimeValue = self.totalTime local barOptions = DBT.Options local currentStyle = barOptions.BarStyle @@ -996,7 +997,7 @@ function barPrototype:Update(elapsed) self:ApplyStyle() DBT:UpdateBars(true) end - if not paused and (timerValue <= enlargeTime) and not self.small and not isEnlarged and isMoving ~= "enlarge" and enlargeEnabled then + if not paused and (timerLowestValueFromVariance <= enlargeTime) and not self.small and not isEnlarged and isMoving ~= "enlarge" and enlargeEnabled then self:RemoveFromList() self:Enlarge() end