Lua functions

RemoveSkillBonus

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

Historical signature: RemoveSkillBonus(spawn)

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

Function: RemoveSkillBonus(spawn)

Description: Remove's any skill bonuses added to the Spawn (if outside a spells script) or all spell targets of a spell from AddSkillBonus (if inside a spell script).

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.

RemoveSkillBonus(Target)

Evidence: server/Spells/AA/BattlemagesFervor.lua:20; binding EQ2Emu_lua_RemoveSkillBonus.

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