WoW:API UnitAura: Difference between revisions

clarif.
(Fixed an typo in usage - wasn't clearly if name & rank have to be together)
(clarif.)
Line 2: Line 2:


This function was introduced in Patch 3.0. It will serve as an all-in-one solution for querying unit buffs and debuffs. [[API UnitBuff|UnitBuff]] and [[API UnitDebuff|UnitDebuff]] will serve as aliases with built-in harmful/helpful filters.
This function was introduced in Patch 3.0. It will serve as an all-in-one solution for querying unit buffs and debuffs. [[API UnitBuff|UnitBuff]] and [[API UnitDebuff|UnitDebuff]] will serve as aliases with built-in harmful/helpful filters.
Usage:
 
'''''Usage''''':
  name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId  
  name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId  
   = UnitAura("unit", index or "name"[, "rank"[, "filter"]])  
   = UnitAura("unit", index or "name"[, "rank"[, "filter"]])
 
Either use:
'''unit''', '''index'''/'''name''' and '''filter'''
or
'''unit''', '''index'''/'''name''', '''rank''' and '''filter'''.


== Arguments ==
== Arguments ==