X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/9bc8361b6162481571467d6373336e0b173a9023..a7e766ac6a22d25458433393b900e5f9a4def266:/OmaRF/Indicators.lua?ds=sidebyside diff --git a/OmaRF/Indicators.lua b/OmaRF/Indicators.lua index ebece6c..c59c975 100644 --- a/OmaRF/Indicators.lua +++ b/OmaRF/Indicators.lua @@ -22,6 +22,8 @@ local UnitIsPlayer = UnitIsPlayer; local UnitIsConnected = UnitIsConnected; local UnitIsDeadOrGhost = UnitIsDeadOrGhost; local CompactRaidFrameContainer_ApplyToFrames = CompactRaidFrameContainer_ApplyToFrames; +local format = string.format; +local unpack = unpack; -- list of important auras TODO try to use spellIDs local centerAuras = { @@ -105,9 +107,9 @@ local function updateIndicators(frame) local text; local remaining = expires - current; if remaining > 60 then - text = string.format("%dm", ceil(remaining/60)); + text = format("%dm", ceil(remaining/60)); else - text = string.format("%d", floor(remaining+0.5)); + text = format("%d", floor(remaining+0.5)); end if count > 1 and config.stack then if text then