533 B
533 B
Function: AddSpellBonus(Spawn, type, value)
Description:
Adds a spell bonus of the type specified. The types are defined on https://github.com/emagi/eq2emu/blob/main/docs/data_types/item_stat_types.md
Parameters:
spawn(Spawn) - Spawn object referencespawn.type(uint16) - Integer valuetype.value(float) - Float valuevalue.
Returns: None.
Example:
-- From Spells/AA/AbilityAptitude.lua
function cast(Caster, Target, BonusAmt)
AddSpellBonus(Target, 707, BonusAmt)
end