FANDOM


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

UnitManaType(UnitId)

Parameters Edit

Arguments Edit

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

Returns Edit

ManaTypeId
number - numerical value mapped as follows:
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.

Example Edit

-- Display the manatype of your target:
g_index = {"Mana", "Rage", "Concentration", "Energy"}
g_charInfo = g_index[UnitManaType("target")]

Notes Edit


Related Functions Edit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.