debuffCount

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

debuffCount(unit, spellID) : integer
-- alts
debuffcount(unit, spellID) : integer
debuffs(unit, spellID) : 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 debuffCount('target', CurseOfAgony) > 2 then
return cast(Hargrave, 'target')
end

Note

This function calls the auraCount() function with 'HARMFUL' as the filter.