From 3a062ee2ac720133188efa9599c1d7910e321247 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Fri, 24 Jul 2026 10:00:22 -0500 Subject: [PATCH] Recast Totem will now use the same rank totem --- modules/totems.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/totems.lua b/modules/totems.lua index 2184ed83..fc107c76 100644 --- a/modules/totems.lua +++ b/modules/totems.lua @@ -9,8 +9,8 @@ pfUI:RegisterModule("totems", function () local totems = CreateFrame("Frame", "pfTotems", UIParent) totems:RegisterEvent("PLAYER_TOTEM_UPDATE") totems:RegisterEvent("PLAYER_ENTERING_WORLD") - totems:SetScript("OnEvent", function(self) - totems:RefreshList() + totems:SetScript("OnEvent", function() + this:RefreshList() end) totems.OnEnter = function(self) @@ -18,7 +18,7 @@ pfUI:RegisterModule("totems", function () local spellID = select(7, GetTotemInfo(id)) if not spellID or spellID == 0 then return end GameTooltip:SetOwner(this, "ANCHOR_LEFT") - GameTooltip:SetSpell(FindSpellBookSlotByID(spellID)) + GameTooltip:SetSpellByID(spellID) GameTooltip:AddDoubleLine(T["Left Click"], "|cffffffff" .. T["Recast Totem"]) GameTooltip:AddDoubleLine(T["Right Click"], "|cffffffff" .. T["Target Totem"]) GameTooltip:Show() @@ -29,8 +29,8 @@ pfUI:RegisterModule("totems", function () totems.OnClick = function(self) local id = this:GetID() if arg1 == "LeftButton" then - local _, name = GetTotemInfo(id) - if name and name ~= "" then CastSpellByName(name) end + local spellID = select(7, GetTotemInfo(id)) + if spellID and spellID > 0 then CastSpell(FindSpellBookSlotByID(spellID)) end elseif arg1 == "RightButton" then TargetTotem(id) end