Historical signature: AddSpellBonus(Spawn, type, value)
Parameter and behavior details in the historical explanation are under review against the current implementation.
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.
Checked example
Active call in a local runtime Lua script. Trailing class requirements are optional. This is a contextual call pattern, not a tested standalone script.
AddSpellBonus(Caster, 4, 5)
Evidence: server/Spells/Apperception.lua:10; binding EQ2Emu_lua_AddSpellBonus.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.