View Single Post
07-01-18, 09:34 AM   #7
runamonk
A Theradrim Guardian
 
runamonk's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2007
Posts: 61
Originally Posted by lightspark View Post
What did you mean by "a more correct way to do it"? Yours is fine, I'd change it a bit though.

Lua Code:
  1. button:SetScript('OnClick', function(self, button)
  2.     if not InCombatLockdown() and button == "RightButton" then
  3.         CancelUnitBuff("player", self:GetID(), self.filter)
  4.     end
  5. end)
Just a hope that one day blizzard will let us cancel auras while in combat.
  Reply With Quote