API Docs for:
Show:

ResistanceSpellEffect Class

Spell effect that modifies damage resistances. This effect stacks additively up to 1 for a given damage resistance.

Constructor

ResistanceSpellEffect

(
  • duration
  • resistanceAmount
  • resistanceType
)

Parameters:

  • duration Number

    Effect duration in seconds. The clock starts ticking when the effect is applied.

  • resistanceAmount Number

    This value can be negative. The amount is % based, where 0 means no resistance, 1 means full resistance and -1 means that the entity will take double damage.

  • resistanceType String

    Type can be 'c' for cyan, 'm' for magenta, 'y' for yellow and 'w' for white.

Methods

getDurationRemaining

() Number

Returns:

Number: Number of seconds remaining before this effect expires.

getResistanceAmount

() Number

Returns:

Number:

getResistanceType

() String

Returns:

String: