mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-25 21:40:49 +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
|
return 1, active[id].name, active[id].start, active[id].duration, active[id].icon
|
||||||
end
|
end
|
||||||
|
|
||||||
pfUI.api.libtotem = libtotem
|
|
||||||
|
|
||||||
if class ~= "SHAMAN" then return end
|
if class ~= "SHAMAN" then return end
|
||||||
|
|
||||||
libtotem = CreateFrame("Frame")
|
libtotem = CreateFrame("Frame")
|
||||||
@@ -152,6 +150,9 @@ libtotem.CheckAddQueue = function(self, name, rank, icon)
|
|||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- assign library to global space
|
||||||
|
pfUI.api.libtotem = libtotem
|
||||||
|
|
||||||
-- Check for totem spell casts
|
-- Check for totem spell casts
|
||||||
hooksecurefunc("CastSpell", function(id, bookType)
|
hooksecurefunc("CastSpell", function(id, bookType)
|
||||||
local name, rank, icon = libspell.GetSpellInfo(id, bookType)
|
local name, rank, icon = libspell.GetSpellInfo(id, bookType)
|
||||||
|
|||||||
Reference in New Issue
Block a user