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
NumberEffect duration in seconds. The clock starts ticking when the effect is applied.
-
resistanceAmount
NumberThis 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
StringType can be 'c' for cyan, 'm' for magenta, 'y' for yellow and 'w' for white.
Item Index
Methods
getDurationRemaining
()
Number
Returns:
Number:
Number of seconds remaining before this effect expires.
getResistanceAmount
()
Number
Returns:
Number:
getResistanceType
()
String
Returns:
String: