MV Characters facing wrong direction at battle start

Hello, I'm using Yanfly's battle engine scripts in RMMV. My sideview battlers are positioned opposite of standard (actors are on the left-hand side of the screen and vice-versa for enemies).

In order to make the actors face right and the enemies face left, @jjleroy on a thread a couple of years ago suggested that within Yanfly's Battle Engine core I change this:

Game_Battler.prototype.spriteFaceBackward = function() {
this.setMirror(true);
};

to this:

Game_Battler.prototype.spriteFaceBackward = function() {
this.setMirror(false);
};

I did that, and changed the corresponding spriteFaceForward code, but the issue is the battlers face the wrong way until one of the actors takes their turn - at that point all battlers (characters and enemies) face the correct direction.

I'd prefer to change facing via code instead of flipping the sprites because a) flipping sprites in a graphics editor is more work than coding and b) I want to keep the weapon animations working properly.
A user from the RPG Maker subreddit wrote this little code for me, you can put it on a new script. I save it as "BattleActorMoveForward" but I don't think the name matters. The problem is the enemies still look to the right, instead of the left, at the beginning of every fight. I am sure the code can be modified to change the direction the enemies look toward, but I don't know enough about javascript to mess around with that. If you figure it out, please share it with me.

var _leftSide_Sprite_Actor_createMainSprite = Sprite_Actor.prototype.createMainSprite;
Sprite_Actor.prototype.createMainSprite = function() {
_leftSide_Sprite_Actor_createMainSprite.call(this);
this.scale.x = -1;

};

Sprite_Actor.prototype.updateTargetPosition = function() {
if (this._actor.isActing()) {
this.stepBack();
} else if (this._actor.canMove() && BattleManager.isEscaped()) {
this.retreat();
} else if (!this.inHomePosition()) {
this.stepForward();
}
};
A user from the RPG Maker subreddit wrote this little code for me, you can put it on a new script. I save it as "BattleActorMoveForward" but I don't think the name matters. The problem is the enemies still look to the right, instead of the left, at the beginning of every fight. I am sure the code can be modified to change the direction the enemies look toward, but I don't know enough about javascript to mess around with that. If you figure it out, please share it with me.
Thank you!! Works for the actors but the enemies flip around after the first round, just like you're encountering. I'll see if I can figure it out and update if so.

Original thread: https://forums.rpgmakerweb.com/threads/characters-facing-wrong-direction-at-battle-start.142877/