Skip to content

Instantly share code, notes, and snippets.

@tekkub
Created January 19, 2010 20:57
Show Gist options
  • Select an option

  • Save tekkub/281287 to your computer and use it in GitHub Desktop.

Select an option

Save tekkub/281287 to your computer and use it in GitHub Desktop.
local buffs = {"Jack-o'-Lanterned!", "Mohawked!"}
local frame = CreateFrame("Frame")
frame:RegisterEvent("UNIT_AURA")
frame:SetScript("OnEvent", function(self, event, ...)
for _,buff in pairs(buffs) do
if UnitBuff("player", buff) then CancelUnitBuff("player", buff) end
end
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment