Changed Spellinfo into GetSpellRec for nampower only support

Changed Spellinfo into GetSpellRec for nampower only support
This commit is contained in:
Meow
2026-02-17 01:29:27 +01:00
parent 22b6f37d56
commit 221f015677
3 changed files with 71 additions and 39 deletions
+8 -1
View File
@@ -307,7 +307,14 @@ pfUI:RegisterModule("superwow", "vanilla", function ()
-- get spell info from spell id
local spell, icon, _
if SpellInfo and SpellInfo(spell_id) then
if GetSpellRec then
local rec = GetSpellRec(spell_id)
if rec then
spell = rec.name
local iconID = rec.spellIconID
icon = iconID and GetSpellIconTexture(iconID) or nil
end
elseif SpellInfo and SpellInfo(spell_id) then
spell, _, icon = SpellInfo(spell_id)
end