API:UnitRaidState

local isLeader, isAssistant, isLooter, isTank, isAttacker = UnitRaidState( unit );

Arguments

 * unit -
 * UnitId