Method SpellInfo:GetEffectValue [-] [+]

Retrieves the total value of a spell effect at the specified index.

Each spell can have up to 3 effects (indices 0, 1, 2). The value returned is the sum of BasePoints and DieSides for the specified effect.

For example, a HEAL_PCT effect with BasePoints = 9 and DieSides = 1 would return 10.

Synopsis

effectValue = SpellInfo:GetEffectValue( effectIndex )

Arguments

uint8 effectIndex

The index of the effect (0, 1, or 2).

Returns

int32 effectValue

The total value (BasePoints + DieSides), or 0 if the effect doesn't exist.

Generated on
©2016 - Eluna Lua Engine