SwitchHealthSpell - TheComputerGeek2/MagicSpells GitHub Wiki
spell-class: ".targeted.SwitchHealthSpell"
targeting cast argument values:
| Value | Supported | 
|---|---|
entity | 
true | 
location | 
false | 
entity_from_location | 
false | 
Description:
A targeted spell that allows you to switch health with an enemy.
Configuration:
Since 4.0 Beta 13 these options support dynamic values through numeric or string expressions.
| Option | Description | Type | Default | 
|---|---|---|---|
require-greater-health-percent | 
Defines whether to require that the caster have a higher health percentage than the target. | Boolean | false | 
require-lesser-health-percent | 
Defines whether to require that the caster have a lower health percentage than the target. | Boolean | false | 
Example:
switchhealth:
    spell-class: ".targeted.SwitchHealthSpell"
    range: 10
    can-target: players,nonplayers