From f322fbd6c63c34d9795d95057afbbd7a79e81b62 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Thu, 6 Aug 2026 02:03:21 -0500 Subject: [PATCH] CancelItemTempEnchantment can't exist in vanilla without server change --- modules/buff.lua | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/modules/buff.lua b/modules/buff.lua index cf5a8092..10ee345b 100644 --- a/modules/buff.lua +++ b/modules/buff.lua @@ -138,16 +138,10 @@ pfUI:RegisterModule("buff", function () end end) - buff:SetScript("OnLeave", function() - GameTooltip:Hide() - end) + buff:SetScript("OnLeave", GameTooltip_Hide) buff:SetScript("OnClick", function() - if CancelItemTempEnchantment and this.mode and this.mode == "MAINHAND" then - CancelItemTempEnchantment(1) - elseif CancelItemTempEnchantment and this.mode and this.mode == "OFFHAND" then - CancelItemTempEnchantment(2) - elseif this.spellId then + if this.spellId then C_Spell.CancelSpellByID(this.spellId) end end)