API:UnitLevel

Gets the current level values of the primary class and secondary class from a given unit.

Arguments

 * UnitId
 * string - The UnitId to query.

Returns

 * primaryClassLevel
 * number - Current level of the primary class from the given unit.
 * Returns nil if the specified unit does not exist (eg. "target" given but there is no target).
 * secondaryClassLevel
 * number - Current level of the secondary class from the given unit.
 * Returns nil if the specified unit does not exist.
 * Returns 0 if the specified unit does not have a secondary class.

Related Functions

 * UnitManaType
 * UnitSkill