You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "LUA:AddImmunitySpell"
(Created page with "= LUA Functions: AddImmunitySpell() = Adds an immunity from a spell to a spawn ==== Syntax ==== AddImmunitySpell(param1, param2) ==== Parameters ==== ; Required - ''param1'' ...") |
|||
| Line 1: | Line 1: | ||
| + | {{PageHeaderChild|LUA|AddImmunitySpell}} | ||
| + | |||
= LUA Functions: AddImmunitySpell() = | = LUA Functions: AddImmunitySpell() = | ||
Adds an immunity from a spell to a spawn | Adds an immunity from a spell to a spawn | ||
Revision as of 16:44, 18 June 2015
LUA - AddImmunitySpell
Return to: LUA | Tutorials | Portal | Forum | Project Manager | Bug Tracker
LUA Functions: AddImmunitySpell()
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
Usage
function cast(Caster, Target)
AddImmunitySpell(7, Target)
end
This will make the target immune to AoE attacks
Notes
Types:
1 Mez
2 Stifle
3 Daze
4 Stun
5 Root
6 Fear
7 AOE