Historical signature: GetSpellTargets(spell)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Function: GetSpellTargets(spell)
Description:
Obtain all the Spell Targets of the Spell. The spell field is optional, it will otherwise be in a Spell Script which defaults to the current spell's initial target.
Parameters:
spell (Spell) - Spell object representing spell.
Returns: None.
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 targets = GetSpellTargets()
Evidence: server/Spells/Commoner/UnholyFear.lua:16; binding EQ2Emu_lua_GetSpellTargets.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.