using GetSpellInfo with just a spell id is dangerous

Handful of addons will polyfill their own GetSpellInfo that only accept (bookSlot, bookType) so it's only safe to use C_Spell.GetSpellInfo with just a spell id
This commit is contained in:
Brues
2026-07-11 09:47:46 -05:00
parent fb5230828c
commit 7389c241a4
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -430,7 +430,7 @@ pfUI:RegisterModule("swingtimer", function ()
local kind, id = GetActionInfo(slot)
local name
if kind == "spell" then
name = GetSpellInfo(id)
name = C_Spell.GetSpellName(id)
elseif kind == "macro" then
name = GetMacroSpell(id)
end