WoW:API UnitDebuff: Difference between revisions

Clarified optional parameter. Confirmed that number is the 2nd return parameter, and it's zero for unstackable buffs.
(Clarified optional parameter. Confirmed that number is the 2nd return parameter, and it's zero for unstackable buffs.)
Line 3: Line 3:
Retrieve info about a certain debuff on a certain unit.
Retrieve info about a certain debuff on a certain unit.


  debuffTexture, debuffApplications, debuffDispelType = UnitDebuff(unitID, debuffIndex, showDispellable);
  debuffTexture, debuffApplications, debuffDispelType = UnitDebuff( unitID, debuffIndex [, showDispellable] );


== Parameters ==
== Parameters ==
Line 20: Line 20:
:;debuffTexture : String - The identifier of (path and filename to) the indicated debuff, or nil if no debuff
:;debuffTexture : String - The identifier of (path and filename to) the indicated debuff, or nil if no debuff


:;debuffApplications : Number (docs said String?!) - The number of times the debuff has been applied to the target.  Usualy returns 0 for single debuffs(Changed in 1.11).
:;debuffApplications : Number - The number of times the debuff has been applied to the target.  Returns 0 for any debuff which doesn't stack. ( Changed in 1.11 ).


:;debuffDispelType : String - The debuff dispel type. Can be "Magic", "Curse", "Poison", "Disease" or nil if not dispellable. These strings are constant across localizations. (Added in 1.11)
:;debuffDispelType : String - The debuff dispel type. Can be "Magic", "Curse", "Poison", "Disease" or nil if not dispellable. These strings are constant across localizations. (Added in 1.11)
Anonymous user