From a gameplay standpoint, does this just happen when they have good feelings for you but are attacking you?
Yes, mainly.
I mean, they can be at war with you, but also appreciate the fact that you're also fighting their enemy or are allied with their friends, etc