You are viewing an old version of this page. Return to the latest version.
Version of 20:06, 15 October 2012 by I need to Update My Profile
No categories assigned
LUA:AddSpellBonus
- Last edited 4 years ago by Vlash Nytefall
LUA Functions: AddSpellBonus()
Adds to the stats of the given spawn.
Syntax
AddSpellBonus(param1, param2, param3)
Parameters
- Required - param1 (Spawn), param2 (int16), param3 (sint32)
- param1 is the spawn to receive the stat boost
- param2 is the type (id) of the stat
- param3 is the amount to add
Usage
function cast(Caster, Target)
AddSpellBonus(Caster, 0, 12)
end
Adds 12 str to the caster.
Notes
If used in a spell script the target param (param1) will be overwritten with the spells targets.