Changed the health on death logs to be live percent (health % at hit moment), was before health amount divided by default character life amount

This commit is contained in:
Tercio Jose
2024-07-29 17:42:33 -03:00
committed by andrew6180
parent 41a347e606
commit beca97a948
14 changed files with 451 additions and 76 deletions
+4 -3
View File
@@ -205,8 +205,9 @@ function Details.ShowDeathTooltip(instance, lineFrame, combatObject, deathTable)
--death parser
for i, event in ipairs(events) do
local currentHP = event[5]
local healthPercent = floor(currentHP / maxHP * 100)
--local currentHP = event[5] * 100
--local healthPercent = floor(currentHP / maxHP * 100)
local healthPercent = floor(event[5] * 100)
if (healthPercent > 100) then
healthPercent = 100
end
@@ -226,7 +227,7 @@ function Details.ShowDeathTooltip(instance, lineFrame, combatObject, deathTable)
local eventTime = event[4]
local source = Details:GetOnlyName(event[6] or "")
if (eventTime + 12 > timeOfDeath) then
if (eventTime + 10 > timeOfDeath) then
if (type(evType) == "boolean") then
--is damage or heal?
if (evType) then --bool true