→Arguments
(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 | :;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 === | ||