CrippleSpell - TheComputerGeek2/MagicSpells GitHub Wiki
spell-class: ".targeted.CrippleSpell"
targeting
cast argument values:
Value | Supported |
---|---|
entity |
true |
location |
false |
entity_from_location |
false |
Description:
A targeted spell that prevents the target from moving. It's a PotionEffectSpell
with fewer lines and specifically for slowness effect.
Configuration:
Since 4.0 Beta 13 these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default |
---|---|---|---|
effect-strength |
Integer | 5 |
|
effect-duration |
Integer | 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. | Integer | 100 |
use-slowness-effect |
When set to true, the target will receive a slowness effect. | Boolean | 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. | Boolean | false |
power-affects-duration |
Boolean | true |
|
power-affects-portal-cooldown |
Boolean | true |
Example:
cripple:
spell-class: ".targeted.CrippleSpell"
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