Function change_entity_effect_duration

Source
pub fn change_entity_effect_duration(
    sink: &mut dyn FightSink,
    lookups: &ContentLookups,
    effects: &mut dyn EffectCb,
    target: &Entity,
    effect_code: &str,
    duration: i64,
) -> Result<(), Error>
Expand description

Native: add duration ticks of effect_code to target (capped at the effect’s max_duration_ticks), emitting EntityApplyEffect on first application and dispatching the effect’s on_apply reaction.