From 748e1d04059c3bc9aafb4e3ad46841ec761c349a Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 27 Sep 2019 13:30:18 +0200 Subject: [PATCH] buff: allow to cancel weapon enchants on tbc --- modules/buff.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/buff.lua b/modules/buff.lua index 8851fd75..0ba6d46e 100644 --- a/modules/buff.lua +++ b/modules/buff.lua @@ -190,7 +190,13 @@ pfUI:RegisterModule("buff", "vanilla:tbc", function () end) buff:SetScript("OnClick", function() - CancelPlayerBuff(this.bid) + if CancelItemTempEnchantment and this.mode and this.mode == "MAINHAND" then + CancelItemTempEnchantment(1) + elseif CancelItemTempEnchantment and this.mode and this.mode == "OFFHAND" then + CancelItemTempEnchantment(2) + else + CancelPlayerBuff(this.bid) + end end) CreateBackdrop(buff)