AbilityCastModifierEffect ​
Inherits: Effect < DatabaseResource < Resource
Modifies cast or channel timing properties on a specific ability via runtime overrides. Works by writing to UseStrategyInstance.runtime_property_overrides — no strategy swap needed. Reverts all overrides cleanly when the effect ends.
Description ​
Common uses:
- Instant cast: set duration_multiplier = 0.0
- Haste buff: set duration_multiplier = 0.5 (half cast time)
- Uninterruptible cast: set force_uninterruptable = true
- Mobile cast: set force_mobile = true
- Extra interrupt shields: set interrupt_shield_add > 0
Properties ​
int | ability_id | 0 |
float | duration_multiplier | -1.0 |
float | duration_flat_mod | 0.0 |
bool | force_uninterruptable | false |
bool | force_mobile | false |
int | interrupt_shield_add | 0 |
Methods ​
void | specific_effect_logic( effect_instance: EffectInstance ) |
void | on_apply_finished( effect_instance: EffectInstance ) |
String | get_effect_description() |
String | get_editor_description() |
Property descriptions ​
Target Ability
int ability_id = 0 ​
The ability to modify
Duration
float duration_multiplier = -1.0 ​
Multiplier applied to cast_duration or channel_duration (0.0 = instant, 0.5 = half time, 1.0 = no change) Set to -1.0 to leave duration unchanged
float duration_flat_mod = 0.0 ​
Flat modifier added to cast/channel duration in seconds after multiplier (negative = shorter)
Behavior Overrides
bool force_uninterruptable = false ​
Force the cast/channel to be uninterruptable (overrides definition setting)
bool force_mobile = false ​
Force the caster to be mobile during cast/channel (overrides definition setting)
int interrupt_shield_add = 0 ​
Additional interrupt shields to add on top of the definition value (0 = no change)
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.