mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 14:00:48 +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)
|
end)
|
||||||
|
|
||||||
buff:SetScript("OnClick", function()
|
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)
|
end)
|
||||||
|
|
||||||
CreateBackdrop(buff)
|
CreateBackdrop(buff)
|
||||||
|
|||||||
Reference in New Issue
Block a user