Navigation menu

WoW:API UnitAura: Difference between revisions

Jump to navigation Jump to search
(Tidied up and completed return values)
Line 9: Line 9:
:;unit : String - The [[API TYPE UnitId|unit]] you want debuff information for.
:;unit : String - The [[API TYPE UnitId|unit]] you want debuff information for.
:;index : Number - The index of the debuff to retrieve info for. Starts at 1, maximum 40.
:;index : Number - The index of the debuff to retrieve info for. Starts at 1, maximum 40.
:;filter : This parameter can be any of "HELPFUL", "HARMFUL", "PLAYER", "RAID", "CANCELABLE", "NOT_CANCELABLE". You can also specify several filters separated by a space or | character to chain multiple filters together (e.g. "HELPFUL|RAID" == helpful buffs that you can cast on your raid). By default UnitAura has "HELPFUL" as an implicit filter - you cannot get back BOTH helpful and harmful at the same time. Neither "HELPFUL" or "HARMFUL" have meaning for UnitBuff/UnitDebuff, and will be ignored.  
:;filter : This parameter can be any of "HELPFUL", "HARMFUL", "PLAYER", "RAID", "CANCELABLE", "NOT_CANCELABLE". You can also specify several filters separated by a | or space character to chain multiple filters together (e.g. "HELPFUL|RAID" or "HELPFUL RAID" == helpful buffs that you can cast on your raid). By default UnitAura has "HELPFUL" as an implicit filter - you cannot get back BOTH helpful and harmful at the same time. Neither "HELPFUL" or "HARMFUL" have meaning for UnitBuff/UnitDebuff, and will be ignored.


=== Returns ===
=== Returns ===
Anonymous user