ResistSpell - TheComputerGeek2/MagicSpells GitHub Wiki
spell-class: ".buff.ResistSpell"
Targeting:
This spell can be cast by/on all living entities.
Description:
A buff spell that reduces the amount of damage taken from specified sources.
Buff Uses:
Buff spell Uses increment whenever the entity resists a spell.
Configuration:
Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default | Supports expressions |
---|---|---|---|---|
multiplier |
Defines how much to reduce the damage taken. Accepts decimal values; use a number below 1 to make it reduce damage. 0.5, for example, will reduce incoming damage by 50%. | Float | 0.5 |
true |
power-affects-multiplier |
Boolean | true |
true |
|
constant-multiplier |
Since 4.0 Beta 13. Defines expression evaluation behaviour. | Boolean | true |
true |
flat-modifier |
Since 4.0 Beta 14. Applies a flat modifier to damage. | Double | 0 |
true |
power-affects-flat-modifier |
Since 4.0 Beta 14. | Boolean | true |
true |
constant-flat-modifier |
Since 4.0 Beta 14. Defines expression evaluation behaviour. | Boolean | true |
true |
spell-damage-types |
A list of the types of damage to reduce, specifically from spells. Since 4.0 Beta 16 you can list * to filter all damage types. |
String List | false |
|
normal-damage-types |
A general list of damage types to reduce globally. List of damage types here. Since 4.0 Beta 16 you can list * to filter all damage types. |
String List | false |
Example:
Pavise:
spell-class: ".buff.ResistSpell"
duration: 6
toggle: false
str-cast-self: "**Pavise**"
str-fade: "&7**Pavise Over**"
normal-damage-types:
- ENTITY_ATTACK
multiplier: 0.5