local function CheckBuffs(_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, abilityId) for i = 1,GetNumBuffs("player") do local _abilityId = select(11, GetUnitBuffInfo("player", i)) if(_abilityId == abilityId) then -- do something end endendEVENT_MANAGER:RegisterForEvent(addon.name, EVENT_EFFECT_CHANGED, CheckBuffs)