buffCount

Returns the r buff count of a passed spell on a unit / object.

buffCount(unit, spellID, filter) : integer
-- alts
buffcount(unit, spellID, filter) : integer
buffs(unit, spellid, filter) : integer
1. SpellID from the class spellbooks 2. See Wowpedia for more information on WoW Unit IDs. 3. Use of object is also supported for unit.

Example

if buffCount('player', Iceicles, 'HELPFUL') > 2 then
return cast(Icelance, 'target')
end

Note

This function calls the auraCount() function.