mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-20 19:30:49 +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
|
elseif maxdurations[texture] and maxdurations[texture] < timeleft then
|
||||||
maxdurations[texture] = timeleft
|
maxdurations[texture] = timeleft
|
||||||
end
|
end
|
||||||
|
start = GetTime() + timeleft - maxdurations[texture]
|
||||||
start = GetTime() - (maxdurations[texture] - timeleft)
|
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
local function TargetBuffOnUpdate()
|
local function TargetBuffOnUpdate()
|
||||||
|
|||||||
Reference in New Issue
Block a user