Difference between revisions of "LUA:AddImmunitySpell"

 
Line 1: Line 1:
{{PageHeaderChild|LUA|AddImmunitySpell}}
+
{{LUAFunction
 
+
|Name = AddImmunitySpell
= LUA Functions: AddImmunitySpell() =
+
|Description = Adds an immunity from a spell to a spawn
Adds an immunity from a spell to a spawn
+
|Param1 = int8
 
+
|Param1Desc = is the type of immunity
 
+
|Param2 = Spawn
==== Syntax ====
+
|Param2Desc = is the spawn to get the immunity
AddImmunitySpell(param1, param2)
+
|Example =
 
 
 
 
==== Parameters ====
 
; Required - ''param1'' (int8), ''param2'' (Spawn)
 
: ''param1'' is the type of immunity
 
: ''param2'' is the spawn to get the immunity
 
 
 
 
 
==== Usage ====
 
 
<pre>
 
<pre>
 
function cast(Caster, Target)
 
function cast(Caster, Target)
Line 21: Line 12:
 
end
 
end
 
</pre>
 
</pre>
 
+
|ExampleDesc = This will make the target immune to AoE attacks
This will make the target immune to AoE attacks
+
|Notes = Use the [[Reference:ImmunityType| Immunity Type List]] for ''param1''
 
+
}}
==== Notes ====
 
Types:
 
 
 
1 Mez
 
 
 
2 Stifle
 
 
 
3 Daze
 
 
 
4 Stun
 
 
 
5 Root
 
 
 
6 Fear
 
 
 
7 AOE
 

Latest revision as of 11:59, 30 January 2021


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