BasicAttackSwapEffect ​
Inherits: Effect < DatabaseResource < Resource
BasicAttackSwapEffect replaces the target entity's basic attack with a new one
Properties ​
int | ability_id | 0 |
Methods ​
void | specific_effect_logic( effect_instance: EffectInstance ) |
void | on_apply_finished( effect_instance: EffectInstance ) |
String | get_effect_description() |
bool | can_swap_basic_attack( target_entity: Entity ) |
String | get_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.