MV Actor/Enemy priority during battle...

So I have a problem where actors and enemies can possibly overlap each other in battle thanks to them not going back to a normal home position after attacks. they will basically stay where they are. I found this

https://forums.rpgmakerweb.com/index.php?threads/sv_enemy-showing-under-sv_actor.118271/

and it sort of helps... but I've come across a problem I wasn't thinking about while setting this up.
ScreenShot_10_22_2022_3_56_44.png

as you can see the player looks like they're standing on top of the enemy. So I was curious, is there a way to give priority to whichever actor/enemy is closer to the bottom of the screen. The problem seems to be either all actors or all enemies get priority at any given time. but I was wondering if I could change that to more so who ever is closer to the bottom of the screen to appear over those above them.

Basically, I need the priority based on depth and not whether the combatant is an actor or enemy... is that possible?
Sorry if this is not helpful, but a workaround can be to just opacity 0 every non target enemy.
that would work actually except for when there is no target yet, like in the screen shot. during the attacks tho, yeah that'd be a good way to keep the screen from looking cluttered.

EDIT: Decided to do this in a MUCH easier fashion. my main goal was to push enemies/actors back and when hit far back enough, cause a short stun status. if you've seen any Street Fighter 6, it's basically when you drive impact an opponent against the wall. sooo I decided to just use Yanfly's Row Formation and set the 2 row up as the "wall"... makes this whole process MUCH easier.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/actor-enemy-priority-during-battle.152155/