he 'd had to learn which the sheep could eat safely and which he should avoid : which plants might trigger problems in a member of the flock and which might be used to help support the animal 's recovery from illness or injury .