Method Unit:AddFlatStatModifier [-] [+]

Modifies a flat amount of a specific stat of the Unit

UnitModifierFlatType ID
BASE_VALUE 0
TOTAL_VALUE 1

Synopsis

Unit:AddFlatStatModifier( statType, modType, value )

Unit:AddFlatStatModifier( statType, modType, value, apply )

Arguments

number statType

The stat to modify.

Valid numbers: integers from 0 to 4,294,967,295.

UnitModifierFlatType modType

The type of modifier to apply.

number value

The value to apply to the stat.

Valid numbers: all decimal numbers.

boolean apply (true)

True applies a positive modifier, false applies a negative.

Returns

Nothing.

Generated on
© 2010 - 2024 Eluna Lua Engine