How to use

Release the scroll while aiming at an unobstructed living entity within GLOBAL_LOOK_RANGE.

Function

Exchanging health percentages

Retribution swaps the caster's and target's health percentages. A caster at 25% targeting a creature at 80% finishes at 80% of their own maximum, while the creature finishes at 25%.

The spell directly sets both health values. Both resulting health values must be above zero, and both participants must still be alive.

Dynamic mana cost

With RETRIBUTION_MANA_CHARGED_PER_PERCENT=false, the cost is RETRIBUTION_MANA_PER_DIFFERENCE × abs(new target health - new caster health).

When the toggle is true, the cost instead becomes RETRIBUTION_MANA_PER_DIFFERENCE × abs(target health fraction - caster health fraction). The fraction ranges from 0 to 1 and the final cost is truncated to a whole mana value.

Filtering

RETRIBUTION_BLACKLIST rejects exact entity types.

Configuration

SettingDefaultRangeEffect
RETRIBUTION_MANA_PER_DIFFERENCEmahoutsukai-server.tomlsecretretribution400–100000000 mana multiplierBase multiplier used by Retribution's cost formula for the selected health difference.
RETRIBUTION_MANA_CHARGED_PER_PERCENTmahoutsukai-server.tomlsecretretributionfalseUses the 0-to-1 difference between health fractions for the calculation.
RETRIBUTION_BLACKLISTmahoutsukai-server.tomlsecretretribution[]Entity identifiers excluded from Retribution.
GLOBAL_LOOK_RANGEmahoutsukai-server.tomlgeneral1000–100000000 blocksMaximum unobstructed selection range shared by several spells and items.