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
+2
View File
@@ -252,6 +252,8 @@ end)
-- Hook CastSpell to store pending name/icon per slot
hooksecurefunc("CastSpell", function(id, bookType)
if not id or not bookType then return end
if bookType ~= BOOKTYPE_SPELL and bookType ~= BOOKTYPE_PET then return end
local name, rank, icon, _, _, _, spellId = libspell.GetSpellInfo(id, bookType)
if not name then return end
libtotem:CheckAddQueue(name, rank, icon, spellId)