Function on_cast

Source
pub fn on_cast(
    sink: &mut dyn FightSink,
    rng: &GameRng,
    lookups: &ContentLookups,
    effects: &mut dyn EffectCb,
    caster: &Entity,
) -> Result<(), Error>
Expand description

Native: the ability on_cast hook. Rolls bravery; on success applies a random buff (protection/empower). Consumes bravery then (if it lands) a randint(0,2) from rng. Effect on_apply reactions dispatch via effects.