AttackEnchantSpellEffect Class
Spell effect that triggers a spell cast next time the entity attacks. It prevents a regular attack from triggering, but sets an attack cooldown. Only one attack enchant can be present on an entity at a time.
Constructor
AttackEnchantSpellEffect
(
-
duration
-
numberOfCharges
-
spellTriggered
Parameters:
-
duration
NumberEffect duration in seconds. The clock starts ticking when the effect is applied.
-
numberOfCharges
NumberAmount of times a spell can be triggered before this effect expires.
-
spellTriggered
StringName of the spell triggered.
Item Index
Methods
getDurationRemaining
()
Number
Returns:
Number:
Number of seconds remaining before this effect expires.
getNumberOfChargesRemaining
()
Number
Returns:
Number:
getSpellTriggered
()
String
Returns:
String: