1
0
EQ2Emu/docs/lua_functions/GetMaxPower.md

405 B

Function: GetMaxPower(spawn)

Description: Gets the Spawn's maximum (total) power.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

Returns: SInt32 maximum (total) power of the spawn.

Example:

-- From Spells/Centered.lua
function cast(Caster, Target)
    MaxPower = GetMaxPower(Caster)
    AddSpellBonus(Caster, 501, math.floor(MaxPower * 0.025))
end