MV Actor state motion persists on their turn

hi, minor thing thats been bugging me for a long time id like to try and deal with is that with both yanfly visual state fx and default motions, if i have a state motion set, the state motion is only in effect when the actor is not currently taking their turn
this is mostly an issue when it comes to the dying/abnormal motions as id like for them to persist into the actors turn (its a little jarring when they suddenly lock in even though they have 1hp)
to clarify, look at the rightmost actor who should currently be showing the dying motion
left image is not his turn, right is his turn
1776031909198.png
1776031948097.png

tldr is id like to somehow overwrite whatever calls the default motion on actors turns, which i believe is a default mv function and not yanfly visual state fx or anything as i couldnt find plugin parameters for it there (however the problem extends to visual state fx state motions as well)
posting this in plugin support as im certain id need a plugin to do this but apologies if im wrong
It comes from this, but your Yanfly plugins might have modified it, so check from console what the method currently is and copypaste it and make changes to it (ass as own plugin). You need to change that line or it's position where it checks actor.isInputting() and makes it start 'walk'. But it depends how you want the motion priorities to work.

Sprite_Actor.prototype.refreshMotion = function() {
var actor = this._actor;
var motionGuard = Sprite_Actor.MOTIONS['guard'];
if (actor) {
if (this._motion === motionGuard && !BattleManager.isInputting()) {
return;
}
var stateMotion = actor.stateMotionIndex();
if (actor.isInputting() || actor.isActing()) {
this.startMotion('walk');
} else if (stateMotion === 3) {
this.startMotion('dead');
} else if (stateMotion === 2) {
this.startMotion('sleep');
} else if (actor.isChanting()) {
this.startMotion('chant');
} else if (actor.isGuard() || actor.isGuardWaiting()) {
this.startMotion('guard');
} else if (stateMotion === 1) {
this.startMotion('abnormal');
} else if (actor.isDying()) {
this.startMotion('dying');
} else if (actor.isUndecided()) {
this.startMotion('walk');
} else {
this.startMotion('wait');
}
}
};
hi!! late reply sorry i couldnt work on my game for a while but thank you i got it working!!

Original thread: https://forums.rpgmakerweb.com/threads/actor-state-motion-persists-on-their-turn.183238/