Im not sure but at the loading screen there are tips and 1 says That you Spirits gain Xp for Damaging enemies , for killing enemies ...and im not sure as the sentence was long and the load screen went fast there was also that thay gain Xp by damaging friendly or maybe it said that they dont