Battle SV weapon animation Z priority?

Hello everyone, during the attack animation in side‑view battles, the weapon ends up appearing behind the actor.
Is there a way to make the weapon appear in front instead? I’ve googled everywhere but I can’t seem to find a solution.
The plugins I’m using are VisuStella Battle Core and VisuStella Battle Animation.

1773846941140.png
I think you can just swap around the methods the below function calls. I changed the order of weapon sprite and main sprite. Put this as a plugin above VisuStella (copy paste to notepad, save as .js in plugin folder), because Battle Core seems to alias the original and then add stuff.

Sprite_Actor.prototype.initMembers = function() {
Sprite_Battler.prototype.initMembers.call(this);
this._battlerName = "";
this._motion = null;
this._motionCount = 0;
this._pattern = 0;
this.createShadowSprite();
this.createMainSprite();
this.createWeaponSprite();
this.createStateSprite();
};

I don't know if your other plugin affects it (I assume you were talking about VS Weapon Animation, since there's no plugin called VS Battle Animation?)
I think you can just swap around the methods the below function calls. I changed the order of weapon sprite and main sprite. Put this as a plugin above VisuStella (copy paste to notepad, save as .js in plugin folder), because Battle Core seems to alias the original and then add stuff.

Sprite_Actor.prototype.initMembers = function() {
Sprite_Battler.prototype.initMembers.call(this);
this._battlerName = "";
this._motion = null;
this._motionCount = 0;
this._pattern = 0;
this.createShadowSprite();
this.createMainSprite();
this.createWeaponSprite();
this.createStateSprite();
};

I don't know if your other plugin affects it (I assume you were talking about VS Weapon Animation, since there's no plugin called VS Battle Animation?)
yes haha
worked like a charm! Thank you so much

Original thread: https://forums.rpgmakerweb.com/threads/battle-sv-weapon-animation-z-priority.182930/