Don't break the death tooltip if the spell isn't in the game client database
This commit is contained in:
parent
44c97087eb
commit
82be7ed472
1 changed files with 9 additions and 0 deletions
|
|
@ -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 "")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue