Method Unit:HandleStatModifier [-] [+]
Applies or removes a modifier from one of the Unit's stats.
The stat is selected using the stat index and the modifier type determines how the value is applied.
Synopsis
success = Unit:HandleStatModifier( stat, type, value )
success = Unit:HandleStatModifier( stat, type, value, apply )
Arguments
number statThe stat index to modify.
Valid numbers: integers from -2,147,483,647 to 2,147,483,647.
number typeThe type of modifier to apply.
Valid numbers: integers from -127 to 127.
number valueThe value of the modifier.
Valid numbers: all decimal numbers.
boolean apply (false)Whether to apply the modifier; false removes it.
Returns
boolean successWhether the stat modification was successful.