From 0bb9d210a3ff246286268b3db541676e214b1e19 Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 6 Jan 2025 10:32:38 +0100 Subject: [PATCH] turtle-wow: only watch for totemic recall on shamans --- modules/turtle-wow.lua | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/modules/turtle-wow.lua b/modules/turtle-wow.lua index aa77631f..14b0f067 100644 --- a/modules/turtle-wow.lua +++ b/modules/turtle-wow.lua @@ -3,15 +3,16 @@ 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) + local _, class = UnitClass("player") + if class == "SHAMAN" then + 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 - end) + end) + end local delay = CreateFrame("Frame") delay:SetScript("OnUpdate", function()