Function apply_entity_effect

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

Native: apply effect_code to target for duration_seconds (converted to ticks). Effect on_apply reactions are dispatched through effects.