FANDOM


Gets the current mana of the primary class from a given unit.

UnitMana(UnitId)

Parameters Edit

Arguments Edit

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

Returns Edit

number
number - Current amount of mana / rage etc of the primary class of the given unit. Returns 0 if the specified unit does not exist (eg. "target" given but there is no target).

Example Edit

-- Print your mana to the Guild channel.
SendChatMessage("My mana is " .. UnitMana("player"),"GUILD")

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.