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.
== 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")
UnitDebuff