Reapply "fix for libtotem.lua crashing with Invalid spell slot"

This reverts commit 02d3cd8348.
This commit is contained in:
Meow
2026-03-14 09:58:26 +01:00
parent 02d3cd8348
commit 8dc9f1cd13
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -108,6 +108,9 @@ function libspell.GetSpellInfo(index, bookType)
name = GetSpellName(id, bookType)
end
else
if not bookType or (bookType ~= BOOKTYPE_SPELL and bookType ~= BOOKTYPE_PET) then
return nil
end
name, rank = GetSpellName(index, bookType)
id, bookType = libspell.GetSpellIndex(name, rank)
end