RemoveImmunitySpell(Int8: Type, Spawn:Entity)
Pre-Requisite(s)
- Must be ran inside a Spell Script
- AddImmunitySpell(Int8: Type, Spawn:Entity) needs to have previously been called with the same Type.
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) – removes immunity to fear
end
Result
Additional Notes