Like i see, damage dealt to unit's shield brings no expirience. Because of final damage=0, i think. At least no mana expirience. Dont know what can be done here, though.
I noticed it when try my new mod, using magic staff against shielded enemy. Staff have mana expirience rate at 150, so use of it must add at least one point. But on mission end was no mana increade.I shall check twice, though.
/** * Converts the number of experience to the stat increase. * @param Experience counter. * @return Stat increase. */int BattleUnit::improveStat(int exp) const{ if (exp > 10) return RNG::generate(2, 6); else if (exp > 5) return RNG::generate(1, 4); else if (exp > 2) return RNG::generate(1, 3); else if (exp > 0) return RNG::generate(0, 1); else return 0;}