Added Evoker Buff Uptime Bar

- Added an extra bar within the evoker damage bar, this new bar when hovered over shows the buff uptime of Ebon Might and Prescience on all players.
This commit is contained in:
Tercio Jose
2023-09-10 14:51:29 -03:00
parent 8bbd81de13
commit 933c10771d
3 changed files with 159 additions and 42 deletions
+3 -1
View File
@@ -1706,6 +1706,8 @@ function atributo_misc:ToolTipDebuffUptime (instancia, numero, barra)
end
function atributo_misc:ToolTipBuffUptime(instance, barFrame)
---@cast instance instance
local owner = self.owner
if (owner and owner.classe) then
r, g, b = unpack(Details.class_colors[owner.classe])
@@ -1713,7 +1715,7 @@ function atributo_misc:ToolTipBuffUptime(instance, barFrame)
r, g, b = unpack(Details.class_colors[self.classe])
end
local combatTime = instance.showing:GetCombatTime()
local combatTime = instance:GetCombat():GetCombatTime()
local buffUptimeSpells = self:GetSpellContainer("buff")
local buffUptimeTable = {}