unitframes: fix player buff timer values

This commit is contained in:
shagu
2020-09-20 14:09:05 +02:00
parent 5091a85d5e
commit 95b60a3a66
+2 -3
View File
@@ -37,11 +37,10 @@ local function BuffOnUpdate()
elseif maxdurations[texture] and maxdurations[texture] < timeleft then
maxdurations[texture] = timeleft
end
start = GetTime() - (maxdurations[texture] - timeleft)
start = GetTime() + timeleft - maxdurations[texture]
end
CooldownFrame_SetTimer(this.cd, start, timeleft, timeleft > 0 and 1 or 0)
CooldownFrame_SetTimer(this.cd, start, maxdurations[texture], timeleft > 0 and 1 or 0)
end
local function TargetBuffOnUpdate()