Method Unit:HandleStatModifier [-] [+]

The Unit modifies a specific stat

@return bool : Whether the stat modification was successful

Synopsis

Unit:HandleStatModifier( stat, type, value )

Unit:HandleStatModifier( stat, type, value, apply )

Arguments

number stat

The stat to modify.

Valid numbers: integers from -2,147,483,647 to 2,147,483,647.

number type

The type of modifier to apply.

Valid numbers: integers from -127 to 127.

number value

The value to apply to the stat.

Valid numbers: all decimal numbers.

boolean apply (false)

Whether the modifier should be applied or removed.

Returns

Nothing.

Generated on
©2016 - Eluna Lua Engine