There is a "hostile only" toggle in the combat settings