WoW:API UnitDebuff: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 3: Line 3:
Retrieve info about a certain debuff on a certain unit.
Retrieve info about a certain debuff on a certain unit.


  debuffName, debuffRank, debuffTexture, debuffApplications = UnitDebuff( unitID, debuffIndex [, showDispellable] );
  debuffName, debuffRank, debuffTexture, debuffApplications, debuffType = UnitDebuff( unitID, debuffIndex [, showDispellable] );


== Parameters ==
== Parameters ==
Line 25: Line 25:


:;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 ).
:;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 ).
:;debuffType : String - The type of the debuff: Magic, Disease, Poison, Curse, or nothing for those with out a type.


== Example ==  
== Example ==  
Anonymous user