Quantcast WoWInterface - View Single Post - oUF - canel buffs
View Single Post
07-01-18, 09:24 AM   #4
lightspark
A Rage Talon Dragon Guard
 
lightspark's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 328
Originally Posted by runamonk View Post
This will work for now until we can get a more correct way to do it.
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)
__________________
  Reply With Quote