Lua GetMaxMana

From ArcEmu-Wiki
Jump to: navigation, search

Description

Returns the Unit's maximum amount of mana.

Usage/Example

function NPC_Spawn(pUnit)
   if (pUnit:GetMana() < pUnit:GetMaxMana()) then
      pUnit:SetMana(pUnit:GetMaxMana())
   end
end
Personal tools