Skip to content

AbilityMorphEffect ​

Inherits: Effect < DatabaseResource < Resource

Temporarily replaces an AbilityInstance's definition with another, morphing the ability in-place so the slot, UI, and entity references are preserved. The instance identity never changes — only the definition underneath it does.

Properties ​

intsource_ability_id0
intreplacement_ability_id0

Methods ​

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

Property descriptions ​

Morph Settings

int source_ability_id = 0 ​

The ability slot to morph, identified by its ability ID

int replacement_ability_id = 0 ​

The definition to morph it into

Method descriptions ​

void specific_effect_logic( effect_instance: EffectInstance ) ​

What the effect does to its target when it is applied.

void on_apply_finished( effect_instance: EffectInstance ) ​

Called when the effect ends: takes back what it did.

String get_effect_description() ​

The text of the effect for tooltips, with its values filled in.

String get_editor_description() ​

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