From 82be7ed472ec638579e1a1c2a4ee70537604f191 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Mon, 27 May 2024 15:11:36 -0300 Subject: [PATCH] Don't break the death tooltip if the spell isn't in the game client database --- classes/class_utility.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/classes/class_utility.lua b/classes/class_utility.lua index 5fbd6173..9949c71b 100644 --- a/classes/class_utility.lua +++ b/classes/class_utility.lua @@ -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 "")