From 010d2b411145c7cdf6b1a2e1ea447ed4f1bf3e53 Mon Sep 17 00:00:00 2001 From: 4n0n <4n0n@tinkr.anon> Date: Tue, 30 Jul 2024 15:07:14 +0000 Subject: [PATCH] 11.0 11.0 --- src/MythicPlusUtils/MythicPlusUtils.lua | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/MythicPlusUtils/MythicPlusUtils.lua b/src/MythicPlusUtils/MythicPlusUtils.lua index f3222b5..13c5cb9 100644 --- a/src/MythicPlusUtils/MythicPlusUtils.lua +++ b/src/MythicPlusUtils/MythicPlusUtils.lua @@ -462,7 +462,14 @@ function MythicPlusUtils:New() return end - local name = GetSpellInfo(spellID) + local name + + if C_Spell.GetSpellInfo then + local info = C_Spell.GetSpellInfo(spellID) + name = info and info.name or '' + else + name = GetSpellInfo(spellID) + end self.loggedCasts[spellID] = true @@ -481,7 +488,14 @@ function MythicPlusUtils:New() return end - local name = GetSpellInfo(spellID) + local name + + if C_Spell.GetSpellInfo then + local info = C_Spell.GetSpellInfo(spellID) + name = info and info.name or '' + else + name = GetSpellInfo(spellID) + end self.loggedCasts[spellID] = true