Skip to content

BasicAttackSwapEffect ​

Inherits: Effect < DatabaseResource < Resource

BasicAttackSwapEffect replaces the target entity's basic attack with a new one

Properties ​

intability_id0

Methods ​

voidspecific_effect_logic( effect_instance: EffectInstance )
voidon_apply_finished( effect_instance: EffectInstance )
Stringget_effect_description()
boolcan_swap_basic_attack( target_entity: Entity )
Stringget_editor_description()

Property descriptions ​

Basic Attack Settings

int ability_id = 0 ​

ID of the basic attack to replace with (uses DatabaseAbilities)

Method descriptions ​

void specific_effect_logic( effect_instance: EffectInstance ) ​

Applies the specific logic for this effect, swapping basic attacks

void on_apply_finished( effect_instance: EffectInstance ) ​

Handles the finishing of the effect, restoring original basic attack

String get_effect_description() ​

Get the effect description for tooltips

bool can_swap_basic_attack( target_entity: Entity ) ​

Check if the basic attack can be swapped

String get_editor_description() ​

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