Historical signature: CastSpell(target, spell_id, spell_tier, caster, custom_cast_time)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Function: CastSpell(target, spell_id, spell_tier, caster, custom_cast_time)
Description:
Casts a spell on the specified target with the spell_id and spell_tier specified.
Parameters:
target (Spawn) - Spawn object representing target.
spell_id (uint32) - Integer value spell_id.
spell_tier (uint8) - Integer value spell_tier.
caster (Spawn) - Spawn object representing caster.
custom_cast_time (uint16) - Integer value custom_cast_time.
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.
CastSpell(NPC,95,1,1,NPC)
Evidence: server/SpawnScripts/SerpentSewer/WatcherKenjedeau.lua:116; binding EQ2Emu_lua_CastSpell.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.