From a0b92c92950e6f62ae42b1415918fc1baf7212f1 Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 28 Mar 2025 21:47:09 +0100 Subject: [PATCH] unitframes: enforce start and duration to be numbers --- api/unitframes.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index 419ebf4a..c20eaa5a 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -1744,17 +1744,17 @@ function pfUI.uf:RefreshUnit(unit, component) if filter == string.lower(texture) then if string.lower(texture) == "interface\\icons\\spell_nature_rejuvenation" then local start, duration, prediction = libpredict:GetHotDuration(unitstr, "Reju") - pfUI.uf:AddIcon(unit, pos, texture, timeleft or prediction, count, start, duration) + pfUI.uf:AddIcon(unit, pos, texture, timeleft or prediction, count, tonumber(start), tonumber(duration)) pos = pos + 1 break elseif string.lower(texture) == "interface\\icons\\spell_holy_renew" then local start, duration, prediction = libpredict:GetHotDuration(unitstr, "Renew") - pfUI.uf:AddIcon(unit, pos, texture, timeleft or prediction, count, start, duration) + pfUI.uf:AddIcon(unit, pos, texture, timeleft or prediction, count, tonumber(start), tonumber(duration)) pos = pos + 1 break elseif string.lower(texture) == "interface\\icons\\spell_nature_resistnature" then local start, duration, prediction = libpredict:GetHotDuration(unitstr, "Regr") - pfUI.uf:AddIcon(unit, pos, texture, timeleft or prediction, count, start, duration) + pfUI.uf:AddIcon(unit, pos, texture, timeleft or prediction, count, tonumber(start), tonumber(duration)) pos = pos + 1 break else