Influence of the emitting nucleus on the light-particle correlation function