Skip to content

ImmunityEffect ​

Inherits: Effect < DatabaseResource < Resource

ImmunityEffect grants or removes immunity to certain types of effects or damage for the target entity. Duration is now handled by the effect's time strategy.

Properties ​

boolimmunity_gaintrue
intimmunity_affected0

Methods ​

voidspecific_effect_logic( effect_instance: EffectInstance )
voidon_apply_finished( effect_instance: EffectInstance )
Stringget_effect_description()
Stringget_editor_description()

Property descriptions ​

Immunity Settings

bool immunity_gain = true ​

If false, removes immunity instead of granting it

int immunity_affected = 0 ​

Name of the immunity to grant/remove

Method descriptions ​

void specific_effect_logic( effect_instance: EffectInstance ) ​

Applies the specific logic for this effect, granting or removing immunity

void on_apply_finished( effect_instance: EffectInstance ) ​

Handles the finishing of the effect, reversing the immunity change

String get_effect_description() ​

Get the effect description for tooltips

String get_editor_description() ​

A short text for the effect editor that says what the effect does.