API Docs for:
Show:

ShieldSpellEffect Class

Spell effect that adds a shield. This effect stacks additively. The last shield applied is the first one to be damaged. Shields protect against all types of damage.

Constructor

ShieldSpellEffect

(
  • duration
  • absorbtionAmount
)

Parameters:

  • duration Number

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

  • absorbtionAmount Number

    Amount of damage this shield can absorb before it's dispelled.

Methods

getAbsorbtionAmountRemaining

() Number

Returns:

Number: Amount of damage this shield can still absorb.

getDurationRemaining

() Number

Returns:

Number: Number of seconds remaining before this effect expires.