Don't break the death tooltip if the spell isn't in the game client database

This commit is contained in:
Tercio Jose
2024-05-27 15:11:36 -03:00
parent 44c97087eb
commit 82be7ed472
+9
View File
@@ -212,6 +212,15 @@ function Details.ShowDeathTooltip(instance, lineFrame, combatObject, deathTable)
local evType = event[1]
local spellName, _, spellIcon = _GetSpellInfo(event[2])
if (not spellName) then
spellName = _G.UNKNOWN
end
if (not spellIcon) then
spellIcon = [[Interface\ICONS\INV_MISC_QUESTIONMARK]]
end
local amount = event[3]
local eventTime = event[4]
local source = Details:GetOnlyName(event[6] or "")