turtle-wow: add totemic recall spell logic to libtotem

This commit is contained in:
jmgibson1981
2025-01-06 02:31:28 -07:00
committed by GitHub
parent a4772e3d4b
commit fc60b42b01
+11
View File
@@ -2,6 +2,17 @@
if not TargetHPText or not TargetHPPercText then return end
pfUI:RegisterModule("turtle-wow", "vanilla", function ()
-- turtle wow totemic recall clear totem indicators
local trecall = CreateFrame("Frame", "pfTotemsRecall", UIParent)
trecall:RegisterEvent("CHAT_MSG_SPELL_SELF_BUFF")
trecall:SetScript("OnEvent", function()
if arg1 and string.find(arg1, T["You gain (.+) Mana from Totemic Recall"]) then
for i = 1, 4 do
libtotem:Clean(i)
end
end
end)
local delay = CreateFrame("Frame")
delay:SetScript("OnUpdate", function()
this:Hide()