mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
434 B
434 B
Function: GetMaxPowerBase(spawn)
Description: Gets the Spawn's base power.
Parameters:
spawn(Spawn) - Spawn object representingspawn.
Returns: SInt32 base power of the spawn.
Example:
-- From Spells/Commoner/DualBreed.lua
function cast(Caster, Target)
PowerBonus = math.ceil(GetMaxPowerBase(Caster) * 0.03)
AddSpellBonus(Caster, 1, 2)
AddSpellBonus(Caster, 501, PowerBonus)
end