API:UnitDebuff

Get the name of a debuff from a unit from an ID number.
UnitDebuff("unit",num)
== Parameter ==
:;unit
::String - the UnitID (e.g. "target", "party1", "raid1", etc..) 
:;num
::Integer - the debuff ID number. 
== Returns ==
:;name 
::String - the name of the debuff located at the ID number. It is not guaranteed to be the same as spell name that causes this debuff, as it may include plural form of words and stack counts
:;texture
::String - path to the texture of debuff icon
:;count 
::Number - amount of stacks of debuff
:;debuffID
::Number - ID of the debuff.
:;params
::Debuff dependent params
== Example ==
Print the name of your targets debuff located at ID 1 to the Say channel.
SendChatMessage("My targets first debuff is " .. UnitDebuff("target",1),"SAY")Print all Debuff
/run for i=1,40,1 do local name, icon, count, ID = UnitDebuff( "target", i ); DEFAULT_CHAT_FRAME:AddMessage(i.." "..name.." "..icon.." "..count.." "..ID); end
UnitDebuff