i try this but don't work
local idBuffs={8122,5782,5246,5211,22570,19577,119381,853,408,1833,89766,107570,15487,2139}
for key,value in pairs(idBuffs) do for i=1,40 do local name, _, _, _, _, _, _, _, _, _, spellId = UnitBuff("party1", i) if (value==spellId) then result=1 return; end end end result=0