I'm not sure if this is something you could change with your mod Sevo, I noticed the AI reacts in a pretty weird fashion in regards to how it feels about you in relation to their worst enemy thing.
Let me explain...lol
I've noticed this often during a game, I'll use my last game as example, I'll just drop the names as who's the AI isn't related to how things work.
I'm at war with a nation A and on very friendly terms with nation B (around +14). during that war time I trade with B for technologies and get out of it that B declares war on A.
Up to now all is fine, my friendliness points even go up to +17 and this stays for some time, then B signs peace with A, I loose the +4 points for a common military struggle, but still all is good.
Several turns later I sign peace with A and since I had already noticed the problem, I tried something to see if the AI would react differently. So instead of accepting, lets say 10 gold per turn for peace from them or anything else for that matter, I just accepted peace itself.
A turn or two later I notice nation B's friendliness points are down to +7 and I have -4 points for trading with their worst enemy. This shouldn't be, especially not after they signed peace, I could understand if I had dropped them with the war on their hands, but in that case there shouldn't be a penalty.
So my question is, can you fix that AI with your mod.....and if so thanks
Oh and ...amazing mod BTW, thanks for all the hard work.