API:UnitBuff

__NOTOC__
UnitBuff
Get the name of a buff from a unit from an ID number.
UnitBuff("unit",num)
== Parameter ==
:;unit
::String - the UnitID (e.g. "target", "party1", "raid1", etc..) 
:;num
::Integer - the buff ID number. 
== Returns ==
:;name 
::String - the name of the buff located at the ID number. Use number 1 to get the first buff the unit has, use 2 to get the second buff, and so on.
:;icon path 
::String path to the buff's icon
:;count 
::Number - amount of stacks of buff
:;buffID
::Number - ID of the buff.
:;params
::Buff dependent params
== Example ==
Print the name of your buff located at ID 1 to the Say channel.
SendChatMessage("My first buff is " .. UnitBuff("player",1),"SAY")
All buffs
/run for i=1,100,1 do local name, icon, count, ID= UnitBuff( "target", i ); DEFAULT_CHAT_FRAME:AddMessage (i.." "..name.." "..icon.." "..count.." "..ID); end