no edit summary
No edit summary |
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. | ||
buffTexture, buffApplications = UnitBuff(unitName, buffIndex); | buffTexture, buffApplications = UnitBuff(unitName, buffIndex, showCastable); | ||
---- | ---- | ||
| Line 24: | Line 24: | ||
:;buffIndex : The index num of the buff to retrieve info on. Starts at 1 and goes up to (and possibly beyond) a certain number. | :;buffIndex : The index num of the buff to retrieve info on. Starts at 1 and goes up to (and possibly beyond) a certain number. | ||
: The maximum numbers used by the Blizzard code are 16 for party/pet | : The maximum numbers used by the Blizzard code are 16 for party/pet and 8(?) for target buffs. | ||
:(Boolean showCastable) | |||
:;showCastable : Flag <small><i>(optional)</i></small> - Can be 0, 1, or nil. If present and 1, then only buffs will be returned which are castable by the player. Index is still starting with 1 and counting up. (new in 1.9, works in 1.9.3) | |||
---- | ---- | ||