Lua functions

RemoveSpellBonus

Registered in this checkout as EQ2Emu_lua_RemoveSpellBonus; implementation found at WorldServer/Lua/LuaFunctions.cpp:2907.

Historical signature: RemoveSpellBonus(spawn)

Parameter and behavior details in the historical explanation are under review against the current implementation.

Function: RemoveSpellBonus(spawn)

Description: Remove's any spell bonuses from AddSpellBonus. If inside a spell Script RemoveSpellBonus() will remove all spell targets bonuses, RemoveSpellBonus(Target) removes only that Spawn's spell bonuses.

Parameters:

  • spawn (Spawn) - Spawn object reference spawn.

Returns: None.

Checked example

Active call in a local runtime Lua script. Argument count matches current fixed C++ readers. This is a contextual call pattern, not a tested standalone script.

RemoveSpellBonus(Target)

Evidence: server/Spells/AA/AbilityAptitude.lua:16; binding EQ2Emu_lua_RemoveSpellBonus.

Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.