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

SettingDefaultRangeEffect
IMMUNITY_EXCHANGE_MANA_COSTmahoutsukai-server.tomlexchangeimmunity4000–100000000 mana per castMana cost of releasing an Immunity Exchange scroll.
IMMUNITY_EXCHANGE_TIMEmahoutsukai-server.tomlexchangeimmunity12000–100000000 ticksDuration of the Immunity Exchange status effect.
GLOBAL_LOOK_RANGEmahoutsukai-server.tomlgeneral1000–100000000 blocksMaximum unobstructed selection range shared by several spells and items.