WoW:API UnitBuff: Difference between revisions

m
isMine->source
(unindent definition lists)
m (isMine->source)
Line 1: Line 1:
{{wowapi}} __NOTOC__
{{wowapi}} __NOTOC__
Retrieve info about a certain buff on a certain unit. This essentially an alias of [[API_UnitAura|UnitAura]] with the "HELPFUL" filter.
Retrieve info about a certain buff on a certain unit. This essentially an alias of [[API_UnitAura|UnitAura]] with the "HELPFUL" filter.
  name, rank, icon, count, debuffType, duration, expirationTime, isMine, isStealable  
  name, rank, icon, count, debuffType, duration, expirationTime, source, isStealable  
   = UnitBuff(unit, index or name [, castable])
   = UnitBuff(unit, index or name [, castable])


Line 17: Line 17:
;duration : Number - The full duration of the buff in seconds
;duration : Number - The full duration of the buff in seconds
;expirationTime : Number - Time the buff will expire in seconds
;expirationTime : Number - Time the buff will expire in seconds
;isMine : String - The [[unitId|unit]] that cast the buff
;source : String - The [[unitId|unit]] that cast the buff
;isStealable : Boolean - 1 if it is stealable otherwise nil
;isStealable : Boolean - 1 if it is stealable otherwise nil


Line 51: Line 51:
* 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.
* Patch 3.0 updated the return values.
* Patch 3.1 updated the return value:isMine
* Patch 3.1 changed the boolean return value isMine to the string value source.


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