diff --git a/classes/class_damage.lua b/classes/class_damage.lua index 5ea6c4e4b..8712bb0c7 100644 --- a/classes/class_damage.lua +++ b/classes/class_damage.lua @@ -3647,28 +3647,30 @@ function damageClass.PredictedAugSpellsOnEnter(self) local ebonMightTable = buffUptimeTable[CONST_SPELLID_EBONMIGHT] - --all ebon mights - for i = 1, #ebonMightTable do - local thisEbonMightTable = ebonMightTable[i] - local uptime = thisEbonMightTable[2] - local evokerName = thisEbonMightTable[3] - local targetName = thisEbonMightTable[4] - local targetClass = thisEbonMightTable[5] - - local spellName = ebonMightSpellName - - if (evokerName) then - targetName = detailsFramework:AddClassColorToText(targetName, targetClass) - targetName = detailsFramework:AddClassIconToText(targetName, targetName, targetClass) - spellName = spellName .. " [" .. targetName .. " ]" - end + if (ebonMightTable) then + --all ebon mights + for i = 1, #ebonMightTable do + local thisEbonMightTable = ebonMightTable[i] + local uptime = thisEbonMightTable[2] + local evokerName = thisEbonMightTable[3] + local targetName = thisEbonMightTable[4] + local targetClass = thisEbonMightTable[5] + + local spellName = ebonMightSpellName + + if (evokerName) then + targetName = detailsFramework:AddClassColorToText(targetName, targetClass) + targetName = detailsFramework:AddClassIconToText(targetName, targetName, targetClass) + spellName = spellName .. " [" .. targetName .. " ]" + end - local minutes, seconds = math.floor(uptime / 60), math.floor(uptime % 60) - if (uptime > 0) then - local uptimePercent = uptime / combatTime * 100 - GameCooltip:AddLine(spellName, minutes .. "m " .. seconds .. "s" .. "(" .. format("%.1f", uptimePercent) .. "%)") - GameCooltip:AddIcon(ebonMightSpellIcon, nil, nil, iconSize, iconSize, iconBorderInfo.L, iconBorderInfo.R, iconBorderInfo.T, iconBorderInfo.B) - Details:AddTooltipBackgroundStatusbar(false, uptimePercent, true, ebonMightColor) + local minutes, seconds = math.floor(uptime / 60), math.floor(uptime % 60) + if (uptime > 0) then + local uptimePercent = uptime / combatTime * 100 + GameCooltip:AddLine(spellName, minutes .. "m " .. seconds .. "s" .. "(" .. format("%.1f", uptimePercent) .. "%)") + GameCooltip:AddIcon(ebonMightSpellIcon, nil, nil, iconSize, iconSize, iconBorderInfo.L, iconBorderInfo.R, iconBorderInfo.T, iconBorderInfo.B) + Details:AddTooltipBackgroundStatusbar(false, uptimePercent, true, ebonMightColor) + end end end diff --git a/luaserver.lua b/luaserver.lua index c8cb66992..9068d8c4d 100644 --- a/luaserver.lua +++ b/luaserver.lua @@ -892,6 +892,12 @@ BackdropTemplateMixin = {} ---@field SetThumbTexture fun(self: slider, texture: textureid|texturepath) ---@field SetStepsPerPage fun(self: slider, steps: number) +---get all frames under the cursor that has mouse focus +---@return uiobject[] +function GetMouseFoci() + return {} +end + ---@return number function debugprofilestop() return 0 end