Cripple Spell - MomoPewpew/MagicSpells GitHub Wiki
spell-class: ".targeted.CrippleSpell"
Description:
A targeted spell that prevents the target from moving. It's a potion effect spell with fewer lines and specifically for slowness effect
Configuration:
| Option | Description | Default Value |
|---|---|---|
effect-strength |
How fast the projectile travels. | 5 |
effect-duration |
How fast the projectile travels. | 100 |
portal-cooldown-ticks |
The number of ticks to set the target entity's portal cooldown to. This will not be used if it is less than the target's existing portal cooldown. | 100 |
use-slowness-effect |
When set to true, the target will receive a slowness effect. | true |
apply-portal-cooldown |
When set to true, this spell will set the portal cooldown field of the target, if the duration of the new cooldown is longer than the existing cooldown. | false |
power-affects-duration |
Self-explanatory. | true |
power-affects-portal-cooldown |
Self-explanatory. | true |
Example:
cripple:
spell-class: ".targeted.CrippleSpell"
name: cripple
description: Slow down a targeted enemy.
cast-item: bone
cooldown: 15
range: 20
effect-strength: 5
effect-duration: 100
can-target: players,nonplayers
cost:
- mana 10
str-cost: 10 mana