Skip to content

Instantly share code, notes, and snippets.

@Industrial
Created November 24, 2009 23:36
Show Gist options
  • Save Industrial/e323c8e15c246728d298 to your computer and use it in GitHub Desktop.
Save Industrial/e323c8e15c246728d298 to your computer and use it in GitHub Desktop.
local f = CreateFrame('Frame')
f:SetScript('OnEvent', function (self, event, ...)
local unit = ...
if UnitAura(unit, 'Dazed') then
if unit == 'player' then
CancelUnitBuff('player', 'Aspect of the Pack')
CancelUnitBuff('player', 'Aspect of the Cheetah')
elseif unit:match('party.*') or unit:match('raid.*') then
CancelUnitBuff('player', 'Aspect of the Pack')
end
end
end)
f:RegisterEvent('UNIT_AURA')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment