mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-24 08:36:04 +00:00
unitframes: fix player buff timer values
This commit is contained in:
+2
-3
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user