Skip to main content

resolve_spell_targets

Function resolve_spell_targets 

Source
pub(crate) fn resolve_spell_targets(
    state: &CombatState,
    buf: &DenseBuffer,
    request: SpellTargetRequest,
    now: SimTime,
    rng: Option<&mut dyn FnMut() -> f64>,
) -> Result<Vec<EnemyIdx>, TargetShapeError>
Expand description

Resolve a spell effect’s hostile targets from its compiled DBC target program.

An unauthored cast destination defaults to the explicit target’s position.