MV YEP Action Sequence help

So I have a monster/troop that has event where if enough damage is taken, it will escape.

However, when its health goes below that amount required for it to escape, an actor will continue to attack it, running their Action Sequence attack despite the enemy having already escaped.

Is there a way to either...

Make the enemy invincible or better yet, stop the current YEP action sequence if the monster escapes.

I've moved this thread to Plugin Support. Thank you.

You can try with the command
BREAK ACTION
with 'if' condition to check if the enemy is lower than that escape required HP.

if (target.hp <= XXX) {
BREAK ACTION
}

Original thread: https://forums.rpgmakerweb.com/threads/yep-action-sequence-help.126976/