Details:UnpackDeathTable(deathTable) now return the spec of the character as the last parameter returned

This commit is contained in:
Tercio Jose
2023-07-04 18:47:06 -03:00
parent f3c49ec02e
commit 9b879f4baa
3 changed files with 9 additions and 3 deletions
+3 -1
View File
@@ -329,6 +329,7 @@
---@return number maxHealth max health of the actor
---@return table deathEvents events that lead the actor to death
---@return {key1: unixtime, key2: spellid}
---@return specializationid specId
function Details:UnpackDeathTable(deathTable)
local deathevents = deathTable[1]
local deathtime = deathTable[2]
@@ -338,8 +339,9 @@
local deathtimestring = deathTable[6]
local lastcooldown = deathTable.last_cooldown
local deathcombattime = deathTable.dead_at
local spec = deathTable.spec
return playername, playerclass, deathtime, deathcombattime, deathtimestring, playermaxhealth, deathevents, lastcooldown
return playername, playerclass, deathtime, deathcombattime, deathtimestring, playermaxhealth, deathevents, lastcooldown, spec
end
---get a random fraction number