WoW:API UnitDebuff: Difference between revisions

m
spelling: casted -> cast
(3.3 update)
m (spelling: casted -> cast)
Line 17: Line 17:
; duration : Number - The full duration of the debuff in seconds; nil if the debuff was not cast by the player.
; duration : Number - The full duration of the debuff in seconds; nil if the debuff was not cast by the player.
; expirationTime : Number - Time at which the debuff expires (GetTime() as a reference frame).
; expirationTime : Number - Time at which the debuff expires (GetTime() as a reference frame).
; unitCaster : String - [[unitId]] reference to the unit that casted the buff/debuff.
; unitCaster : String - [[unitId]] reference to the unit that cast the buff/debuff.
;isStealable : Boolean - 1 if it is stealable otherwise nil
;isStealable : Boolean - 1 if it is stealable otherwise nil
;shouldConsolidate : Boolean - 1 if the buff should be placed in a buff consolidation box (usually long-term effects).
;shouldConsolidate : Boolean - 1 if the buff should be placed in a buff consolidation box (usually long-term effects).
Line 39: Line 39:
* Patch 2.1 introduced duration and timeLeft return values.
* Patch 2.1 introduced duration and timeLeft return values.
* Patch 3.0 changes this into an alias of UnitAura; durations are now available for all debuffs.
* Patch 3.0 changes this into an alias of UnitAura; durations are now available for all debuffs.
* Patch 3.1 changed "isMine" to "unitCaster". It is now possible for addons to retrieve the unitId that casted the buff/debuff.
* Patch 3.1 changed "isMine" to "unitCaster". It is now possible for addons to retrieve the unitId that cast the buff/debuff.


== See Also ==
== See Also ==
Anonymous user