1
0
EQ2Emu/docs/lua_functions/AddSpellBonus.md
2025-05-27 09:56:36 -04:00

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 reference spawn.
  • type (uint16) - Integer value type.
  • value (float) - Float value value.

Returns: None.

Example:

-- From Spells/AA/AbilityAptitude.lua
function cast(Caster, Target, BonusAmt)
    AddSpellBonus(Target, 707, BonusAmt)
end