Ist there a way to cancel aura/buffs
Cancel part
Code:
button:SetScript('OnMouseUp', function(self, mouseButton)
if mouseButton == 'RightButton' then
CancelUnitBuff('player', index)
end
end)
Since this cancels a buff even if I click on a pary members buff.
And it does cancel a random buff (not allways the one I click on)
Code:
local function PostCreateAuraIcon(self, button, icons, index, debuff)
icons.showDebuffType = true
button.cd:SetReverse()
button.icon:SetTexCoord(0, 1, 0, 1)
button.overlay:SetTexture(bordertexture)
button.overlay:SetTexCoord(0,1,0,1)
button.overlay.Hide = noHide
button.count:SetPoint('BOTTOMRIGHT', button, 1, 0)
button.count:SetFont(font, fSize, 'OUTLINE')
button.count:SetTextColor(1,1,1)
button:SetScript('OnMouseUp', function(self, mouseButton)
if mouseButton == 'RightButton' then
CancelUnitBuff('player', index)
end
end)
end
thank