no edit summary
(Resolved buffIndex question, added a proper example.) |
No edit summary |
||
| Line 3: | Line 3: | ||
Retrieve info about a certain buff on a certain unit. | Retrieve info about a certain buff on a certain unit. | ||
buffName, buffRank, buffTexture, buffApplications = UnitBuff(unit, buffIndex[, | buffName, buffRank, buffTexture, buffApplications = UnitBuff(unit, buffIndex[, raidFilter]); | ||
== Parameters == | == Parameters == | ||
| Line 14: | Line 14: | ||
:;buffIndex : Integer - The index of the buff to retrieve information for. Starts at 1 and goes up indefinitely until there are no more buffs on target. | :;buffIndex : Integer - The index of the buff to retrieve information for. Starts at 1 and goes up indefinitely until there are no more buffs on target. | ||
:; | :;[[raidFilter|raidFilter]] : [[Boolean]] - If present and true (1), then only buffs will be returned which are castable by the player. Index is still starting with 1 and counting up. (Added in 1.9, works in 1.9.3) | ||
=== Returns === | === Returns === | ||