from retail

This commit is contained in:
Bunny67
2022-05-19 22:04:17 +03:00
parent 9465daedd8
commit e7e789686a
86 changed files with 9118 additions and 5486 deletions
+8 -2
View File
@@ -197,7 +197,7 @@ local funcs = {
end
end,
UpdateTimerTick = function(self)
if self.tick_placement_mode == "ValueOffset" and self.state and self.state.progressType == "timed" then
if self.tick_placement_mode == "ValueOffset" and self.state and self.state.progressType == "timed" and not self.paused then
if not self.TimerTick then
self.TimerTick = self.UpdateTickPlacement
self.parent:UpdateRegionHasTimerTick()
@@ -237,7 +237,13 @@ local funcs = {
elseif self.tick_placement_mode == "ValueOffset" then
if self.trigger_total and self.trigger_total ~= 0 then
if self.state.progressType == "timed" then
tick_placement = self.state.expirationTime - GetTime() + self.tick_placement
if self.state.paused then
if self.state.remaining then
tick_placement = self.state.remaining + self.tick_placement
end
else
tick_placement = self.state.expirationTime - GetTime() + self.tick_placement
end
else
tick_placement = self.state.value + self.tick_placement
end