mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
405 B
405 B
Function: GetMaxPower(spawn)
Description: Gets the Spawn's maximum (total) power.
Parameters:
spawn(Spawn) - Spawn object representingspawn.
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