Skip to content

Commit

Permalink
AQ Trash: Show trash HP in info frame
Browse files Browse the repository at this point in the history
  • Loading branch information
emmericp committed Dec 18, 2024
1 parent 429636f commit 098b15f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions DBM-Raids-Vanilla/AQ40/AQ40Trash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -462,16 +462,18 @@ local function updateInfoFrame()
end
table.wipe(lines)
table.wipe(sortedLines)
for k, mob in pairs(mobs) do
for guid, mob in pairs(mobs) do
local hp = DBM:GetBossHP(guid)
mob.hp = hp or mob.hp
local name = HIGHLIGHT_FONT_COLOR:WrapTextInColorCode(mob.name)
if mob.icon > 0 then
name = DBM:IconNumToTexture(mob.icon) .. " " .. name
end
addLine(name)
addLine(name, mob.hp and ("%d%%"):format(mob.hp))
for _, ability in ipairs(mob.sortedAbilities) do
addLine(NORMAL_FONT_COLOR:WrapTextInColorCode((" "):rep(6) .. ability))
end
if next(mobs, k) then
if next(mobs, guid) then
addLine(" ")
end
end
Expand Down

0 comments on commit 098b15f

Please sign in to comment.