fn has_primary_resource( view: &CombatView<'_>, spell_id: u32, target: EnemyIdx, ) -> Result<(), CastReject>