No categories assigned

LUA:AddImmunitySpell

Revision as of 11:59, 30 January 2021 by Cynnar (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


LUA:AllFunctions - AddImmunitySpell

Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker


Adds an immunity from a spell to a spawn

Syntax

AddImmunitySpell(param1, param2)

Parameters

Required - param1 (int8), param2 (Spawn)
param1 is the type of immunity
param2 is the spawn to get the immunity


Example

function cast(Caster, Target)
    AddImmunitySpell(7, Target)
end

This will make the target immune to AoE attacks

Notes

Use the Immunity Type List for param1