Runes of Magic Wiki
Advertisement

Get the maximum mana of a unit.

UnitMaxMana("unit")

Parameter[ | ]

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

Returns[ | ]

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

Example[ | ]

Print your maximum mana to the Say channel.

SendChatMessage("My mana is " .. UnitMaxMana("player"),"SAY")
Advertisement