From 95b60a3a6667cd1e5ec90c91e0c57fd446ca8fb6 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 20 Sep 2020 14:09:05 +0200 Subject: [PATCH] unitframes: fix player buff timer values --- api/unitframes.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index 1678ff52..a8457acd 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -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()