mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-12 00:20:01 +00:00
Reapply "fix for libtotem.lua crashing with Invalid spell slot"
This reverts commit 02d3cd8348.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user