Also I have decided that when you level up during battle you fully heal your HP and MP (not your stamina though).