Is it possible to make a function that runs thru the raidsroster and see how many got a specifik buff ?
Is it possible to make a function that runs thru the raidsroster and see how many got a specifik buff ?
I am fairly certain the answer to your question is yes.
I personally lack the skill set to help.
Try joining the irc channel - someone there will be able to help
It's very fairly basic..
Plug in a Spell ID, it will convert it to a name and look it up, or you can directly use a name. If you abuse the function too much though it might lag down your game if you're in a large raid.Code:function buffFinder(buff) local count = count or 0 local limit = GetNumGroupMembers() if tonumber(buff) then buff = GetSpellInfo(buff) end for i=1,limit do if UnitBuff(("raid%d"):format(i),buff) then count = count+1 end end return count end