mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 18:36:01 +00:00
buff: allow to cancel weapon enchants on tbc
This commit is contained in:
+7
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user