Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

GetMaxMana

Returns the maximum mana of the mobile with ObjID.

Возвращает максимальную ману мобайла с ObjID.

Pascal

function GetMaxMana(ObjID: Cardinal): Integer;

Python

def GetMaxMana(ObjID: int) -> int: ...

Pascal Example

begin
  if GetMana(Self) < GetMaxMana(Self) then
    UseSkill('Meditation');
end.

Python Example

if GetMana(Self()) < GetMaxMana(Self()):
    UseSkill('Meditation')

See Also

GetMana, GetHP