No categories assigned

LUA:AddSpawnSpellBonus

Revision as of 15:17, 16 January 2014 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: AddSpellBonus() = Adds to the stats of the given spawn. ==== Syntax ==== AddSpellBonus(param1, param2, param3, [...]) ==== Parameters ==== ; Required - ''par...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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
Optional - ... (int32)
... is a list of class id's this bonus can apply to


Usage

function cast(Caster, Target)
    AddSpawnSpellBonus(Caster, 0, 12)
end

Adds 12 str to the caster.


Notes

Same as AddSpellBonus() however it will only apply to the given spawn and will ignore the spells targets.