Question: how to do undyne pacifist?
Answer: To spare Undyne, you need to survive her waves of attacks until she changes your heart back to red and throw a spear at you. Run during this turn. When you get on the overworld map, Undyne will be stunned for a moment.