Plugin that adjusts the state icon anchor of each battler!

I have tested the version below with YEP_X_ActSeqPack2, and it seems to work. Feel free to try it with your application.
Code:
// AdjustStatePositions.js
// Created on 9/18/2018
// Last modified on 10/22/2018 by Yethwhinger

var objYeth = objYeth || {};

/*:
* @plugindesc This plugin is meant to adjust the positions of the
* state displays over battlers.
* @author Yethwhinger
*
* @help This plugin adjusts the position of the state icon or
* overlay over a battler by moving it using <stateX:number1>
* and <stateY:number2> entries in the note fields of the Enemies
* and Actors sections of the database. number1 and number2
* represent pixel adjustments in the x and y directions.
*/

//----------------------------
// Changes to Game_Enemy
//----------------------------

objYeth.Game_Enemy_setup = Game_Enemy.prototype.setup;
Game_Enemy.prototype.setup = function (enemyId, x, y) {
    var tempX = $dataEnemies[enemyId].meta.stateX;
    var tempY = $dataEnemies[enemyId].meta.stateY;
    objYeth.Game_Enemy_setup.call(this, enemyId, x, y);
    this._stateX = 0;
    this._stateY = 0;
    if (tempX) {
        this._stateX = Number(tempX);
    }
    if (tempY) {
        this._stateY = Number(tempY);
    }
};

//----------------------------
// Changes to Game_Actor
//----------------------------

objYeth.Game_Actor_setup = Game_Actor.prototype.setup;
Game_Actor.prototype.setup = function (actorId) {
    var tempX = $dataActors[actorId].meta.stateX;
    var tempY = $dataActors[actorId].meta.stateY;
    objYeth.Game_Actor_setup.call(this, actorId);
    this._stateX = 0;
    this._stateY = 0;
    if (tempX) {
        this._stateX = Number(tempX);
    }
    if (tempY) {
        this._stateY = Number(tempY);
    }
};

//----------------------------
// Changes to Sprite_StateIcon
//----------------------------

objYeth.Sprite_StateIcon_setup = Sprite_StateIcon.prototype.setup;
Sprite_StateIcon.prototype.setup = function (battler) {
    objYeth.Sprite_StateIcon_setup.call(this, battler);
    this.x = battler._stateX;
    if (battler.isActor()) {
        this.y = battler._stateY;
    }
};

//----------------------------
// Changes to Sprite_StateOverlay
//----------------------------

objYeth.Sprite_StateOverlay_setup = Sprite_StateOverlay.prototype.setup;
Sprite_StateOverlay.prototype.setup = function (battler) {
    objYeth.Sprite_StateOverlay_setup.call(this, battler);
    this.x = battler._stateX;
    this.y = battler._stateY;
};

//----------------------------
// Changes to Sprite_Battler
//----------------------------

objYeth.Sprite_Battler_updateStateSpritesAdjPos = Sprite_Battler.prototype.updateStateSprites;
Sprite_Battler.prototype.updateStateSprites = function () {
    var stateY = this._battler._stateY;
    objYeth.Sprite_Battler_updateStateSpritesAdjPos.call(this);
    if (this._stateIconSprite) {
        this._stateIconSprite.y += stateY;
    }
    if (this._stateSprite) {
        this._stateSprite.y += stateY;
    }
};

//----------------------------
// Changes to Sprite_Enemy
//----------------------------

Sprite_Enemy.prototype.updateStateSprite = function () {
    this._stateIconSprite.y = -Math.round((this.bitmap.height + 40) * 0.9) + this._battler._stateY;
    if (this._stateIconSprite.y < 20 - this.y) {
        this._stateIconSprite.y = 20 - this.y;
    }
};
@Yethwhinger

The new plugins works fine, thank you!

Is it possible to adjusts the position of the state icon/overlay over a battler for a specific motion? For example <stateY_walk:number1>,
<stateY_abnormal:number2>, ... and so on.
I have modified the code to allow the state icons or overlays to be moved vertically a different amount for different motions (walk, guard, damage, abnormal, etc.) by using <stateY_motion:number> in an actor's Note field in the database. For example, the state icon can be moved 50 pixels lower when a certain actor guards by adding <stateY_guard:50> to that actor's Note field in the database. This additional functionality requires the YEP_X_ActSeqPack2 plugin.
Code:
// AdjustStatePositions.js
// Created on 9/18/2018
// Last modified on 10/23/2018 by Yethwhinger

var objYeth = objYeth || {};

/*:
* @plugindesc This plugin is meant to adjust the positions of the
* state displays over battlers.
* @author Yethwhinger
*
* @help This plugin adjusts the position of the state icon or
* overlay over a battler by moving it using <stateX:number1>
* and <stateY:number2> entries in the note fields of the Enemies
* and Actors sections of the database. number1 and number2
* represent pixel adjustments in the x and y directions.
*
* If the plugin is used with YEP_X_ActSeqPack2, the state icon
* or overlay positions can be adjusted in the y direction
* a different amount for each actor's individual battle motions
* by using notes of the format <stateY_motion:number>. For example,
* a note of <stateY_guard:50> in an actor's note field in the
* database will lower that actor's state icon or overlay by 50
* pixels when that actor's sprite is in the guard motion.
*/

//----------------------------
// Changes to Game_Enemy
//----------------------------

objYeth.Game_Enemy_setup = Game_Enemy.prototype.setup;
Game_Enemy.prototype.setup = function (enemyId, x, y) {
    var tempX = $dataEnemies[enemyId].meta.stateX;
    var tempY = $dataEnemies[enemyId].meta.stateY;
    objYeth.Game_Enemy_setup.call(this, enemyId, x, y);
    this._stateX = 0;
    this._stateY = 0;
    if (tempX) {
        this._stateX = Number(tempX);
    }
    if (tempY) {
        this._stateY = Number(tempY);
    }
};

//----------------------------
// Changes to Game_Actor
//----------------------------

objYeth.Game_Actor_setup = Game_Actor.prototype.setup;
Game_Actor.prototype.setup = function (actorId) {
    var tempX = $dataActors[actorId].meta.stateX;
    var tempY = $dataActors[actorId].meta.stateY;
    var metadata = $dataActors[actorId].meta;
    var saMot = Sprite_Actor.MOTIONS;
    var i;
    var nMotions;
    var tempMotionY;
    objYeth.Game_Actor_setup.call(this, actorId);
    this._stateX = 0;
    this._stateY = 0;
    if (tempX) {
        this._stateX = Number(tempX);
    }
    if (tempY) {
        this._stateY = Number(tempY);
    }
    this._stateMotionY = [];
    this._stateMotionY[saMot.walk.index] = metadata.stateY_walk || 0;
    this._stateMotionY[saMot.wait.index] = metadata.stateY_wait || 0;
    this._stateMotionY[saMot.chant.index] = metadata.stateY_chant || 0;
    this._stateMotionY[saMot.guard.index] = metadata.stateY_guard || 0;
    this._stateMotionY[saMot.damage.index] = metadata.stateY_damage || 0;
    this._stateMotionY[saMot.evade.index] = metadata.stateY_evade || 0;
    this._stateMotionY[saMot.thrust.index] = metadata.stateY_thrust || 0;
    this._stateMotionY[saMot.swing.index] = metadata.stateY_swing || 0;
    this._stateMotionY[saMot.missile.index] = metadata.stateY_missile || 0;
    this._stateMotionY[saMot.skill.index] = metadata.stateY_skill || 0;
    this._stateMotionY[saMot.spell.index] = metadata.stateY_spell || 0;
    this._stateMotionY[saMot.item.index] = metadata.stateY_item || 0;
    this._stateMotionY[saMot.escape.index] = metadata.stateY_escape || 0;
    this._stateMotionY[saMot.victory.index] = metadata.stateY_victory || 0;
    this._stateMotionY[saMot.dying.index] = metadata.stateY_dying || 0;
    this._stateMotionY[saMot.abnormal.index] = metadata.stateY_abnormal || 0;
    this._stateMotionY[saMot.sleep.index] = metadata.stateY_sleep || 0;
    this._stateMotionY[saMot.dead.index] = metadata.stateY_dead || 0;
    nMotions = this._stateMotionY.length;
    for (i = 0; i < nMotions; i++) {
        tempMotionY = this._stateMotionY[i];
        if (tempMotionY) {
            this._stateMotionY[i] = Number(tempMotionY);
        }
    }
};

//-----------------------------
// Changes to Sprite_StateIcon
//-----------------------------

objYeth.Sprite_StateIcon_setup = Sprite_StateIcon.prototype.setup;
Sprite_StateIcon.prototype.setup = function (battler) {
    objYeth.Sprite_StateIcon_setup.call(this, battler);
    this.x = battler._stateX;
    if (battler.isActor()) {
        this.y = battler._stateY;
    }
};

//--------------------------------
// Changes to Sprite_StateOverlay
//--------------------------------

objYeth.Sprite_StateOverlay_setup = Sprite_StateOverlay.prototype.setup;
Sprite_StateOverlay.prototype.setup = function (battler) {
    objYeth.Sprite_StateOverlay_setup.call(this, battler);
    this.x = battler._stateX;
    this.y = battler._stateY;
};

//----------------------------
// Changes to Sprite_Battler
//----------------------------

objYeth.Sprite_Battler_updateStateSpritesAdjPos = Sprite_Battler.prototype.updateStateSprites;
Sprite_Battler.prototype.updateStateSprites = function () {
    var battler = this._battler;
    var stateY = battler._stateY;
    var motion = this._motion;
    objYeth.Sprite_Battler_updateStateSpritesAdjPos.call(this);
    if (this._stateIconSprite) {
        this._stateIconSprite.y += stateY;
        if (motion) {
            this._stateIconSprite.y += battler._stateMotionY[motion.index];
        }
    }
    if (this._stateSprite) {
        this._stateSprite.y += stateY;
        if (motion) {
            this._stateSprite.y += battler._stateMotionY[motion.index];
        }
    }
};

//----------------------------
// Changes to Sprite_Enemy
//----------------------------

Sprite_Enemy.prototype.updateStateSprite = function () {
    this._stateIconSprite.y = -Math.round((this.bitmap.height + 40) * 0.9) + this._battler._stateY;
    if (this._stateIconSprite.y < 20 - this.y) {
        this._stateIconSprite.y = 20 - this.y;
    }
};
@Yethwhinger

The plugins works fine under normal conditions. But when I use a custom battler with the YED_SideviewBattler plugin the script
<stateY_motion:number> doesn't work. I made a screenshot of my plugins list and if you want to try by yourself, you can download some Vibrato battlers (including the plugin above) here.
By the way, does the script <stateY_motion:number> include custom motions as well?
I have tested the version below with the YED_SideviewBattler plugin, and it seems to work. This plugin does not support custom motions. If you had a short list of custom motions, the motion names could probably be added to the plugin to make it work with them.
Code:
// AdjustStatePositions.js
// Created on 9/18/2018
// Last modified on 10/24/2018 by Yethwhinger

var objYeth = objYeth || {};

/*:
* @plugindesc This plugin is meant to adjust the positions of the
* state displays over battlers.
* @author Yethwhinger
*
* @help This plugin adjusts the position of the state icon or
* overlay over a battler by moving it using <stateX:number1>
* and <stateY:number2> entries in the note fields of the Enemies
* and Actors sections of the database. number1 and number2
* represent pixel adjustments in the x and y directions.
*
* If the plugin is used with YEP_X_ActSeqPack2, the state icon
* or overlay positions can be adjusted in the y direction
* a different amount for each actor's individual battle motions
* by using notes of the format <stateY_motion:number>. For example,
* a note of <stateY_guard:50> in an actor's note field in the
* database will lower that actor's state icon or overlay by 50
* pixels when that actor's sprite is in the guard motion.
*/

//----------------------------
// Changes to Game_Enemy
//----------------------------

objYeth.Game_Enemy_setup = Game_Enemy.prototype.setup;
Game_Enemy.prototype.setup = function (enemyId, x, y) {
    var tempX = $dataEnemies[enemyId].meta.stateX;
    var tempY = $dataEnemies[enemyId].meta.stateY;
    objYeth.Game_Enemy_setup.call(this, enemyId, x, y);
    this._stateX = 0;
    this._stateY = 0;
    if (tempX) {
        this._stateX = Number(tempX);
    }
    if (tempY) {
        this._stateY = Number(tempY);
    }
};

//----------------------------
// Changes to Game_Actor
//----------------------------

objYeth.Game_Actor_setup = Game_Actor.prototype.setup;
Game_Actor.prototype.setup = function (actorId) {
    var tempX = $dataActors[actorId].meta.stateX;
    var tempY = $dataActors[actorId].meta.stateY;
    var metadata = $dataActors[actorId].meta;
    var saMot = Sprite_Actor.MOTIONS;
    var i;
    var nMotions;
    var tempMotionY;
    objYeth.Game_Actor_setup.call(this, actorId);
    this._stateX = 0;
    this._stateY = 0;
    if (tempX) {
        this._stateX = Number(tempX);
    }
    if (tempY) {
        this._stateY = Number(tempY);
    }
    this._stateMotionY = [];
    this._stateMotionY[saMot.walk.index] = metadata.stateY_walk || 0;
    this._stateMotionY[saMot.wait.index] = metadata.stateY_wait || 0;
    this._stateMotionY[saMot.chant.index] = metadata.stateY_chant || 0;
    this._stateMotionY[saMot.guard.index] = metadata.stateY_guard || 0;
    this._stateMotionY[saMot.damage.index] = metadata.stateY_damage || 0;
    this._stateMotionY[saMot.evade.index] = metadata.stateY_evade || 0;
    this._stateMotionY[saMot.thrust.index] = metadata.stateY_thrust || 0;
    this._stateMotionY[saMot.swing.index] = metadata.stateY_swing || 0;
    this._stateMotionY[saMot.missile.index] = metadata.stateY_missile || 0;
    this._stateMotionY[saMot.skill.index] = metadata.stateY_skill || 0;
    this._stateMotionY[saMot.spell.index] = metadata.stateY_spell || 0;
    this._stateMotionY[saMot.item.index] = metadata.stateY_item || 0;
    this._stateMotionY[saMot.escape.index] = metadata.stateY_escape || 0;
    this._stateMotionY[saMot.victory.index] = metadata.stateY_victory || 0;
    this._stateMotionY[saMot.dying.index] = metadata.stateY_dying || 0;
    this._stateMotionY[saMot.abnormal.index] = metadata.stateY_abnormal || 0;
    this._stateMotionY[saMot.sleep.index] = metadata.stateY_sleep || 0;
    this._stateMotionY[saMot.dead.index] = metadata.stateY_dead || 0;
    nMotions = this._stateMotionY.length;
    for (i = 0; i < nMotions; i++) {
        tempMotionY = this._stateMotionY[i];
        if (tempMotionY) {
            this._stateMotionY[i] = Number(tempMotionY);
        }
    }
};

//-----------------------------
// Changes to Sprite_StateIcon
//-----------------------------

objYeth.Sprite_StateIcon_setup = Sprite_StateIcon.prototype.setup;
Sprite_StateIcon.prototype.setup = function (battler) {
    objYeth.Sprite_StateIcon_setup.call(this, battler);
    this.x = battler._stateX;
    if (battler.isActor()) {
        this.y = battler._stateY;
    }
};

//--------------------------------
// Changes to Sprite_StateOverlay
//--------------------------------

objYeth.Sprite_StateOverlay_setup = Sprite_StateOverlay.prototype.setup;
Sprite_StateOverlay.prototype.setup = function (battler) {
    objYeth.Sprite_StateOverlay_setup.call(this, battler);
    this.x = battler._stateX;
    this.y = battler._stateY;
};

//----------------------------
// Changes to Sprite_Battler
//----------------------------

objYeth.Sprite_Battler_updateStateSpritesAdjPos = Sprite_Battler.prototype.updateStateSprites;
Sprite_Battler.prototype.updateStateSprites = function () {
    var battler = this._battler;
    var stateY = battler._stateY;
    var motion = this._motion;
    var motionName = this._motionName || "";
    var saMot = Sprite_Actor.MOTIONS;
    objYeth.Sprite_Battler_updateStateSpritesAdjPos.call(this);
    if (this._stateIconSprite) {
        this._stateIconSprite.y += stateY;
        if (motion) {
            this._stateIconSprite.y += battler._stateMotionY[motion.index];
        }
        else if (motionName) {
            this._stateIconSprite.y += battler._stateMotionY[saMot[motionName].index];
        }
    }
    if (this._stateSprite) {
        this._stateSprite.y += stateY;
        if (motion) {
            this._stateSprite.y += battler._stateMotionY[motion.index];
        }
        else if (motionName) {
            this._stateSprite.y += battler._stateMotionY[saMot[motionName].index];
        }
    }
};

//----------------------------
// Changes to Sprite_Enemy
//----------------------------

Sprite_Enemy.prototype.updateStateSprite = function () {
    this._stateIconSprite.y = -Math.round((this.bitmap.height + 40) * 0.9) + this._battler._stateY;
    if (this._stateIconSprite.y < 20 - this.y) {
        this._stateIconSprite.y = 20 - this.y;
    }
};
Everything works fine now, thank you!
@Yethwhinger Sorry to bother you again but I just found another conflict between your plugin and YED_SideviewBattler. I uploaded some screenshots of this problem to help you understand better. Thank you in advance!
Thanks for the screenshots. I am not yet sure why it isn't working in your setup. Would you mind trying the game with AdjustStatePositions as the bottom (last) plugin?
Also, from the error message you sent, it seems as though the error could be related to the game not finding the battle motion specified in the original list of motions. Does the problem occur only when you use a specific battle motion (walk, guard, damage, etc.)?
Thanks for the screenshots. I am not yet sure why it isn't working in your setup. Would you mind trying the game with AdjustStatePositions as the bottom (last) plugin?
Also, from the error message you sent, it seems as though the error could be related to the game not finding the battle motion specified in the original list of motions. Does the problem occur only when you use a specific battle motion (walk, guard, damage, etc.)?
I followed your advice and discovered that your plugin cannot read <custom motion name_motion: target> in the action sequences.
I modified the plugin to accept up to 9 looping custom motions named "cloop1," "cloop2,"...,"cloop9" and 9 single-play custom motions named "csing1," "csing2,"...,"csing9." The new version is posted below.
Code:
// AdjustStatePositions.js
// Created on 9/18/2018
// Last modified on 1/28/2019 by Yethwhinger

var objYeth = objYeth || {};

/*:
* @plugindesc This plugin is meant to adjust the positions of the
* state displays over battlers.
* @author Yethwhinger
*
* @help This plugin adjusts the position of the state icon or
* overlay over a battler by moving it using <stateX:number1>
* and <stateY:number2> entries in the note fields of the Enemies
* and Actors sections of the database. number1 and number2
* represent pixel adjustments in the x and y directions.
*
* If the plugin is used with YEP_X_ActSeqPack2, the state icon
* or overlay positions can be adjusted in the y direction
* a different amount for each actor's individual battle motions
* by using notes of the format <stateY_motion:number>. For example,
* a note of <stateY_guard:50> in an actor's note field in the
* database will lower that actor's state icon or overlay by 50
* pixels when that actor's sprite is in the guard motion.
*
* This version is made to work with up to 9 looping custom motions
* named "cloop1" through "cloop9" and 9 single-play custom motions
* named "csing1" through "csing9" when used with YEP_X_ActSeqPack2
* and YED_SideviewBattler.
*/

//----------------------------
// Changes to Game_Enemy
//----------------------------

objYeth.Game_Enemy_setup = Game_Enemy.prototype.setup;
Game_Enemy.prototype.setup = function (enemyId, x, y) {
    var tempX = $dataEnemies[enemyId].meta.stateX;
    var tempY = $dataEnemies[enemyId].meta.stateY;
    objYeth.Game_Enemy_setup.call(this, enemyId, x, y);
    this._stateX = 0;
    this._stateY = 0;
    if (tempX) {
        this._stateX = Number(tempX);
    }
    if (tempY) {
        this._stateY = Number(tempY);
    }
};

//----------------------------
// Changes to Game_Actor
//----------------------------

objYeth.addCustomMotions = function () {
    var saMot = Sprite_Actor.MOTIONS;
    var i;
    var nCustom = 9;
    var nStandard = 18;
    var nTotal = nStandard + nCustom;
    var motionName;
    var nameStem = 'cloop';
    for (i = 0; i < nCustom; i++) {
        motionName = nameStem + (i + 1);
        saMot[motionName] = { index: i + nStandard, loop: true };
    }
    nameStem = 'csing';
    for (i = 0; i < nCustom; i++) {
        motionName = nameStem + (i + 1);
        saMot[motionName] = { index: i + nStandard + nCustom, loop: false };
    }
};

objYeth.Game_Actor_setup = Game_Actor.prototype.setup;
Game_Actor.prototype.setup = function (actorId) {
    var tempX = $dataActors[actorId].meta.stateX;
    var tempY = $dataActors[actorId].meta.stateY;
    var metadata = $dataActors[actorId].meta;
    var saMot;
    var i;
    var nCustom = 9;
    var motionName, paramName;
    var nameStem = 'cloop';
    var nMotions;
    var tempMotionY;
    objYeth.Game_Actor_setup.call(this, actorId);
    this._stateX = 0;
    this._stateY = 0;
    if (tempX) {
        this._stateX = Number(tempX);
    }
    if (tempY) {
        this._stateY = Number(tempY);
    }
    objYeth.addCustomMotions();
    saMot = Sprite_Actor.MOTIONS;
    this._stateMotionY = [];
    this._stateMotionY[saMot.walk.index] = metadata.stateY_walk || 0;
    this._stateMotionY[saMot.wait.index] = metadata.stateY_wait || 0;
    this._stateMotionY[saMot.chant.index] = metadata.stateY_chant || 0;
    this._stateMotionY[saMot.guard.index] = metadata.stateY_guard || 0;
    this._stateMotionY[saMot.damage.index] = metadata.stateY_damage || 0;
    this._stateMotionY[saMot.evade.index] = metadata.stateY_evade || 0;
    this._stateMotionY[saMot.thrust.index] = metadata.stateY_thrust || 0;
    this._stateMotionY[saMot.swing.index] = metadata.stateY_swing || 0;
    this._stateMotionY[saMot.missile.index] = metadata.stateY_missile || 0;
    this._stateMotionY[saMot.skill.index] = metadata.stateY_skill || 0;
    this._stateMotionY[saMot.spell.index] = metadata.stateY_spell || 0;
    this._stateMotionY[saMot.item.index] = metadata.stateY_item || 0;
    this._stateMotionY[saMot.escape.index] = metadata.stateY_escape || 0;
    this._stateMotionY[saMot.victory.index] = metadata.stateY_victory || 0;
    this._stateMotionY[saMot.dying.index] = metadata.stateY_dying || 0;
    this._stateMotionY[saMot.abnormal.index] = metadata.stateY_abnormal || 0;
    this._stateMotionY[saMot.sleep.index] = metadata.stateY_sleep || 0;
    this._stateMotionY[saMot.dead.index] = metadata.stateY_dead || 0;
    for (i = 0; i < nCustom; i++) {
        motionName = nameStem + (i + 1);
        paramName = `stateY_${motionName}`;
        this._stateMotionY[saMot[motionName].index] = metadata[paramName] || 0;
    }
    nameStem = 'csing';
    for (i = 0; i < nCustom; i++) {
        motionName = nameStem + (i + 1);
        paramName = `stateY_${motionName}`;
        this._stateMotionY[saMot[motionName].index] = metadata[paramName] || 0;
    }
    nMotions = this._stateMotionY.length;
    for (i = 0; i < nMotions; i++) {
        tempMotionY = this._stateMotionY[i];
        if (tempMotionY) {
            this._stateMotionY[i] = Number(tempMotionY);
        }
    }
};

//-----------------------------
// Changes to Sprite_StateIcon
//-----------------------------

objYeth.Sprite_StateIcon_setup = Sprite_StateIcon.prototype.setup;
Sprite_StateIcon.prototype.setup = function (battler) {
    objYeth.Sprite_StateIcon_setup.call(this, battler);
    this.x = battler._stateX;
    if (battler.isActor()) {
        this.y = battler._stateY;
    }
};

//--------------------------------
// Changes to Sprite_StateOverlay
//--------------------------------

objYeth.Sprite_StateOverlay_setup = Sprite_StateOverlay.prototype.setup;
Sprite_StateOverlay.prototype.setup = function (battler) {
    objYeth.Sprite_StateOverlay_setup.call(this, battler);
    this.x = battler._stateX;
    this.y = battler._stateY;
};

//----------------------------
// Changes to Sprite_Battler
//----------------------------

objYeth.Sprite_Battler_updateStateSpritesAdjPos = Sprite_Battler.prototype.updateStateSprites;
Sprite_Battler.prototype.updateStateSprites = function () {
    var battler = this._battler;
    var stateY = battler._stateY;
    var motion = this._motion;
    var motionName = this._motionName || "";
    var saMot = Sprite_Actor.MOTIONS;
    objYeth.Sprite_Battler_updateStateSpritesAdjPos.call(this);
    if (this._stateIconSprite) {
        this._stateIconSprite.y += stateY;
        if (motion) {
            this._stateIconSprite.y += battler._stateMotionY[motion.index];
        }
        else if (motionName) {
            this._stateIconSprite.y += battler._stateMotionY[saMot[motionName].index];
        }
    }
    if (this._stateSprite) {
        this._stateSprite.y += stateY;
        if (motion) {
            this._stateSprite.y += battler._stateMotionY[motion.index];
        }
        else if (motionName) {
            this._stateSprite.y += battler._stateMotionY[saMot[motionName].index];
        }
    }
};

//----------------------------
// Changes to Sprite_Enemy
//----------------------------

Sprite_Enemy.prototype.updateStateSprite = function () {
    this._stateIconSprite.y = -Math.round((this.bitmap.height + 40) * 0.9) + this._battler._stateY;
    if (this._stateIconSprite.y < 20 - this.y) {
        this._stateIconSprite.y = 20 - this.y;
    }
};
It works, thank you!
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/plugin-that-adjusts-the-state-icon-anchor-of-each-battler.99570/