MV Enemies prefer latest party member as a target

I've done a lot og testing by now to be sure about it:

My enemies tend to target the latest added party member way more often than anyone else. In fact my testing revealed that the chance to get chosen as a target increases with he position in the party.
The first almost never gets chosen as a target, the last one over 70% of the time!

This is only the case as long as they have the same target rate and about the same amount of HP. If I tinker with the target rate, thinks work out as they should: Actor's with higher target rate get targeted more often. But the thing with the HP is another mystery to me.

I figured it has something to do with Yanfly's Battle A.I. Core, but I can't find anything that suggests that something like this could happen. I have set all the enemies skills to chose a random target in the note tags. Also I set the AI level to 100 because I want them to strictly follow my instructions readring what skill to use. As I understand that does not change their target behaviour, however.

Another thing that might cause this, is that I tried to make A.I. Core consider the target rate. I used the solution in this thread. Maybe I messed something up, but I double checked and I think I used exactly the code that was provided. Also I can't imagine how this would lead o this strange behavoir of targetting the last party member more often ...

So, does anyone has an idea what's going on?

Thanks in advance~
what is your order of yanfly plugins? Most times when those plugins behave strangely, it is because they are installed in the wrong order.

Please give us screenshots of your plugin manager, that way we can not only check the order but also see if there is any other incompatible plugin.
Sure! It's a lot of plugins, but until now I was able to keep everything working without issues. I try to keep them in the right order, but I'd be more than happy if I made a mistake and that's all that is to it.

Spoiler: PLUGINS 1
PLUGINS_1.png
Spoiler: PLUGINS 2
PLUGINS_2.png
Spoiler: PLUGINS 3
PLUGINS_3.png
Spoiler: PLUGINS 4
PLUGINS_4.png
Spoiler: PLUGINS 5
PLUGINS_5.png
Spoiler: PLUGINS 6
PLUGINS_6.png
Spoiler: PLUGINS 7
PLUGINS_7.png
Spoiler: PLUGINS 8
PLUGINS_8.png

Original thread: https://forums.rpgmakerweb.com/threads/enemies-prefer-latest-party-member-as-a-target.155751/