The Art of War by active 6th century B.C. Sunzi

29. A clever general, therefore, avoids an army when its spirit is

keen, but attacks it when it is sluggish and inclined to return. This is the art of studying moods.