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