Historical signature: AddImmunitySpell(ImmunityType, Spawn)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Function: AddImmunitySpell(ImmunityType, Spawn)
Description:
Add an Immunity to the Spawn by the Immunity Type.
Parameters:
ImmunityType: UInt8 - Immunity Type to add.
Spawn: Spawn - Spawn to apply immunity.
Returns: None.
Notes:
- See IMMUNITY_TYPE defines for more details.
- If Spawn is specified only the Spawn receives the Immunity, otherwise if it is in a Spell Script we will apply to all Spell Targets.
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.
AddImmunitySpell(7, Target)
Evidence: server/Spells/AA/AdvanceWarning.lua:12; binding EQ2Emu_lua_AddImmunitySpell.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.