API:UnitSkillType

Get the skill/mana type of the secondary class of a unit.

Parameter

 * unit
 * String - the UnitId (e.g. "player", "target", "party1", "raid1", etc..)

Returns

 * SkillTypeID
 * Integer mapped as follows:
 * {| border="1"

! Mana Type ! Index ! Class(es) ! Mana ! 1 ! Mage, Priest, Knight ! Rage ! 2 ! Warrior ! Concentration ! 3 ! Scout ! Energy ! 4 ! Rogue
 * }
 * If the specified unit doesn't exist, then UnitSkillType returns 1 rather than nil.

Example
Display the manatype of your target: