no edit summary
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
Retrieve info about a certain debuff on a certain unit. | Retrieve info about a certain debuff on a certain unit. | ||
debuffName, debuffRank, debuffTexture, debuffApplications, debuffType = UnitDebuff( unitID, debuffIndex [, | debuffName, debuffRank, debuffTexture, debuffApplications, debuffType = UnitDebuff( unitID, debuffIndex [, raidFilter] ); | ||
== Parameters == | == Parameters == | ||
| Line 10: | Line 10: | ||
:;unitName : The [[API TYPE UnitId|unit id]] you want debuff information for | :;unitName : The [[API TYPE UnitId|unit id]] you want debuff information for | ||
:;debuffIndex : Number - The index of the debuff to retrieve info for. Starts at 1. | :;debuffIndex : Number - The index of the debuff to retrieve info for. Starts at 1, maximum 40 (new in 2.0, old was 16). | ||
:: The maximum numbers used by the Blizzard code are 16 for party/pet/target debuffs. | :: The maximum numbers used by the Blizzard code are 16 for party/pet/target debuffs. | ||
:; | :;[[raidFilter|raidFilter]] : Boolean - <small><i>(optional)</i></small> - Can be 0, 1, or nil. If present and 1, then only debuffs will be returned which are dispellable by the player. Index is still starting with 1 and counting up. (new in 1.9, works in 1.9.3) | ||
=== Returns === | === Returns === | ||