WoW:API UnitBuff: Difference between revisions

3.0 note
(3.0 note)
Line 2: Line 2:
Retrieve info about a certain buff on a certain unit.
Retrieve info about a certain buff on a certain unit.
  name, rank, iconTexture, count, duration, timeLeft =  UnitBuff(unit, buffIndex[, castable]);
  name, rank, iconTexture, count, duration, timeLeft =  UnitBuff(unit, buffIndex[, castable]);
In 3.0, the returns will change:
name, rank, icon, count, debuffType, duration, expirationTime, isMine, isStealable = UnitBuff(unit, buffIndex[, castable])


== Parameters ==
== Parameters ==
Line 51: Line 54:
* Patch 2.4 (PTR 8089-enGB) changed (again) behaviour of castable parameter - spells cast by other '''classes''' are no longer shown at all when castable is used. Tested with druid and priest spells, MacOSX client. Needs to be confirmed.
* Patch 2.4 (PTR 8089-enGB) changed (again) behaviour of castable parameter - spells cast by other '''classes''' are no longer shown at all when castable is used. Tested with druid and priest spells, MacOSX client. Needs to be confirmed.
* Patch 2.4 (Live) has corrected the bug introduced in 2.3.2. The castable parameter correctly filters non-castable buffs once again.
* Patch 2.4 (Live) has corrected the bug introduced in 2.3.2. The castable parameter correctly filters non-castable buffs once again.
* Patch 3.0 updated the return values.


== See also ==
== See also ==
Anonymous user