AddImmunitySpell(Int8: Type, Spawn: Entity)
Pre-Requisite(s)
- Must be ran inside a Spell Script
Parameter(s)
Int8: Type - Immunity Types
Spawn: Entity (OPTIONAL) - Spawn LUA Pointer of Player, NPC or Bot type only. If included only this Entity will receive the Immunity Type, if omitted all Spell Targets receive the immunity.
Return(s)
- None
Example(s)
– Taken from Spells/Commoner/IgnoreTerror.lua
function cast(Caster, Target)
AddImmunitySpell(6, Target) – adds immunity to fear
end
function remove(Caster, Target)
RemoveImmunitySpell(6, Target)
end
Result
Additional Notes