mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 02:16:02 +00:00
libtotem: attach to global space properly
This commit is contained in:
+3
-2
@@ -93,8 +93,6 @@ GetTotemInfo = function(id)
|
||||
return 1, active[id].name, active[id].start, active[id].duration, active[id].icon
|
||||
end
|
||||
|
||||
pfUI.api.libtotem = libtotem
|
||||
|
||||
if class ~= "SHAMAN" then return end
|
||||
|
||||
libtotem = CreateFrame("Frame")
|
||||
@@ -152,6 +150,9 @@ libtotem.CheckAddQueue = function(self, name, rank, icon)
|
||||
return nil
|
||||
end
|
||||
|
||||
-- assign library to global space
|
||||
pfUI.api.libtotem = libtotem
|
||||
|
||||
-- Check for totem spell casts
|
||||
hooksecurefunc("CastSpell", function(id, bookType)
|
||||
local name, rank, icon = libspell.GetSpellInfo(id, bookType)
|
||||
|
||||
Reference in New Issue
Block a user