Historical signature: GetSpellCaster(spell)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Function: GetSpellCaster(spell)
Description:
Gets the spell caster of the spell provided or the current spell if inside a Spell Script, spell parameter is optional.
Parameters:
spell (Spell) - Spell object representing spell.
Returns: Spawn object reference of the Spell's caster.
Checked example
Active call in a local runtime Lua script. Falls back to the current spell context. This is a contextual call pattern, not a tested standalone script.
local initial_caster = GetSpellCaster()
Evidence: server/Spells/Priest/Cleric/Inquisitor/ContriteGrace.lua:25; binding EQ2Emu_lua_GetSpellCaster.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.