API:UnitManaType

Gets the mana type of the primary class of a given unit.

Arguments

 * UnitId
 * string - A UnitId (e.g. "player", "target", "party1", "raid1", etc..)

Returns

 * ManaTypeId
 * number - numerical value mapped as follows:
 * {| border="1"

! Mana Type ID ! 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 UnitManaType returns 1 rather than nil.
 * 4
 * Rogue
 * }
 * If the specified unit doesn't exist, then UnitManaType returns 1 rather than nil.

Related Functions

 * UnitSkill