How to use
Release the scroll while directly aiming at an unobstructed living entity within GLOBAL_LOOK_RANGE to apply Immunity Exchange to that target. Aim at a valid target to apply the spell to it; otherwise, the spell applies to the caster.
Function
Alternating damage response
The first hit deals normal damage and stores its damage type.
A later hit matching the stored damage type is negated. A hit of a different type deals double damage, replaces the stored type, and becomes the new immunity.
The GUI shows the stored damage type while the effect is active. The effect lasts IMMUNITY_EXCHANGE_TIME ticks and is required to create Replica.
Stored type across casts
The saved damage type remains after Immunity Exchange expires and across later casts.
Mystic Eyes of Reversion removes the effect and clears the stored type.
Configuration
| Setting | Default | Range | Effect |
|---|---|---|---|
IMMUNITY_EXCHANGE_MANA_COSTmahoutsukai-server.tomlexchangeimmunity | 400 | 0–100000000 mana per cast | Mana cost of releasing an Immunity Exchange scroll. |
IMMUNITY_EXCHANGE_TIMEmahoutsukai-server.tomlexchangeimmunity | 1200 | 0–100000000 ticks | Duration of the Immunity Exchange status effect. |
GLOBAL_LOOK_RANGEmahoutsukai-server.tomlgeneral | 100 | 0–100000000 blocks | Maximum unobstructed selection range shared by several spells and items. |



