Function try_cast

Source
pub fn try_cast(
    sink: &mut dyn FightSink,
    rng: &GameRng,
    config: &GameConfig,
    lookups: &ContentLookups,
    fight: &ActiveFight,
    caster: &Entity,
    ability_id: Uuid,
    casts: i64,
) -> Result<(), Error>
Expand description

Native: attempt to cast ability_id from caster. Picks valid targets and delegates to cast; if there are none and the caster is not static, advances toward the enemy. casts is the natural cast count (default 1). Consumes RNG only via cast / advance_entity.