Originally Posted by lightspark
What did you mean by "a more correct way to do it"? Yours is fine, I'd change it a bit though.
Lua Code:
button:SetScript('OnClick', function(self, button) if not InCombatLockdown() and button == "RightButton" then CancelUnitBuff("player", self:GetID(), self.filter) end end)
|
Just a hope that one day blizzard will let us cancel auras while in combat.