You are viewing an old version of this page. Return to the latest version.
No categories assigned
LUA:AddWard
- Last edited 4 years ago by Vlash Nytefall
LUA Functions: AddWard()
Adds a ward with the given amount
Syntax
AddWard(param1, [param2], [param3], [param4])
Parameters
- Required - param1 (int32)
- param1 is the amount of the ward
- Optional - param2 (bool), param3 (int8), param4 (int8)
- param2 - is if we want to keep the spell active or remove it when the ward is depleted
- param3 is the type of ward
- param4 is the damage type to absorb if ward type is magical
Usage
function cast(Caster, Target)
AddWard(25)
end
Adds a ward that will absorb 25 damage
Notes
Can only be used in a spell script
The ward will be applied to the targets of the spell that uses this spell script
ward type is 0 - all, 1 - physical, 2 - magical
damage type is the magical damage to absorb