Lua functions

RemoveThreatTransfer

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

Historical signature: RemoveThreatTransfer(spawn)

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

Function: RemoveThreatTransfer(spawn)

Description: Remove a threat transfer currently assigned to the Spawn, only inside a Spell Script.

Parameters:

  • spawn (Spawn) - Spawn object representing 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.

RemoveThreatTransfer(Target)

Evidence: server/Spells/ClassicRefresh/Fighter/Crusader/Paladin/Amends-2550716.lua:17; binding EQ2Emu_lua_RemoveThreatTransfer.

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