pub(crate) fn validate_effect_index(
spell_id: SpellId,
effect_index: u8,
effects: &[SpellEffect],
) -> Result<SpellEffect, ResolverError>pub(crate) fn validate_effect_index(
spell_id: SpellId,
effect_index: u8,
effects: &[SpellEffect],
) -> Result<SpellEffect, ResolverError>