MV YEP_X_AnimatedSVEnemies - Problem with enemy stance

Using YEP_X_AnimatedSVEnemies here: Animated Sideview Enemies (YEP) - Yanfly.moe Wiki

There's something messed up about the sideview enemies when it comes to their stance in certain situations (performing a skill when at low HP, being attacked while asleep).

See, when a sideview enemy is at low HP (25%) and they get attacked or do their skill, they don't stay in their abnormal motion stance, they go to their default idle stance.

When you attack a sleeping enemy, the enemy gets right to their default stance for the remainder of the turn until it's the player's turn again.

Player actors don't have this problem if they were attacked while sleeping, they stay in their sleeping motion. They stay in their abnormal motion when attacked or performing a skill.

Does someone know a edit around YEP_X_AnimatedSVEnemies where enemies stay in their changed motion instead of going right back to their default idle stance?
Enemy does its abnormal motion correctly, this is before the enemy gets attacked.

Enemya.PNG


The enemy changes to its default idle motion after attacked.
Enemyb.PNG


I still need help in noticing what part of the code is causing this to happen on animated sideview enemies, and how to fix this problem, because it's out of place on the enemies part.
Bump.

Original thread: https://forums.rpgmakerweb.com/threads/yep_x_animatedsvenemies-problem-with-enemy-stance.130308/