MV Enemy X coordinates seem swapped

Hopefully this is the correct area to post this. But I was customizing a plugin and need to base it on the enemies position on the screen and it seems like its using the location of the wrong enemy. I'm testing this in a fresh game and still see the issue. I've attached a picture.

Sample.jpg


The Bat is enemy index 0 but it is showing the x coordinate of the slime (enemy index 1) and vice versa. Is this a bug or am I just not understanding something. Any help would be greatly appreciated.

Edit: I noticed that this seems to occur when the two enemies share a relatively close y coordinate.
The Bat is enemy index 0 but it is showing the x coordinate of the slime (enemy index 1) and vice versa. Is this a bug or am I just not understanding something. Any help would be greatly appreciated.
iirc the battleset sprite list doesnt follow the same order as the troop member list. it sorts it by the enemy's y coord at some point because thats the order that they get drawn in.
iirc the battleset sprite list doesnt follow the same order as the troop member list. it sorts it by the enemy's y coord at some point because thats the order that they get drawn in.
Thank you, that makes it make sense and I was able to figure out another way to do what I wanted to do because of that so its much appreciated.

Original thread: https://forums.rpgmakerweb.com/threads/enemy-x-coordinates-seem-swapped.183450/