DamageOverTimeSpellEffect Class
Spell effect that periodically deals damage to the entity. This effect stacks additively, where each effect is its own source of damage.
Constructor
DamageOverTimeSpellEffect
(
-
duration
-
damageInterval
-
damageAmount
-
damageType
Parameters:
-
duration
NumberEffect duration in seconds. The clock starts ticking when the effect is applied.
-
damageInterval
NumberHow many seconds should pass between each instance of damage. The spell effect always deals its last tick of damage right before expiring, so a 15 second long DoT with a 3 second interval will deal damage at 12 seconds remaining, then 9, then 6, then 3, then 0.
-
damageAmount
NumberAmount of damage dealt per interval.
-
damageType
StringType can be 'c' for cyan, 'm' for magenta, 'y' for yellow and 'w' for white.
Item Index
Methods
getDamageAmount
()
Number
Returns:
Number:
getDamageInterval
()
Number
Returns:
Number:
getDamageType
()
String
Returns:
String:
getDurationRemaining
()
Number
Returns:
Number:
Number of seconds remaining before this effect expires.