Issue with Battle Engine Core - Battle Events at Wrong Time

I am using Yanfly's Battle Engine Core plugin and one main issue I'm having with it is that battle events play as soon as the enemy reaches this percentage in the middle of an attack sequence.

I'm using these two battle events for certain bosses, which makes them immortal at the start and takes the immortal state out if their HP is 0.
-------------------------------------------
1st Battle Event (Turn 0):
-Add Immortal State: Enemy 1

Last Battle Event (If Enemy's HP is 0):
-Remove Immortal State: Enemy 1
-------------------------------------------

I like how without Battle Engine Core, battle events waited after the user's turn was over if the condition was met and played at the right time. But with the plugin, battle events play as soon as they reach the percentage in the middle of an attack.

For example:
Actor A has a multi hitting move.
Enemy 1 takes 2 hits bringing the HP down to 0.
Instead of waiting for the whole turn to be over, the common event plays as soon as HP is 0.
The enemy is no longer mortal.
Enemy 1 takes the last 2 hits and then collapses.

See, the battle events are supposed to wait after the user's turn is over if they meet the condition, even if the action sequence has multiple action effects. It really messes it up for those who use battle events and dialogue in the middle of battle on bosses.

Is there some workaround to this issue? I would like battle events to wait after the user has finished the whole turn, especially if it needs to break an action during an action sequence.
An easy workaround are switches. At the beginning of the animation turn a switch off and at the end of the animation turn it on. And have the event conditions Enemy hp 0 and switch on.
If you're using action sequences, you can control this stuff very precisely in the skill's notetags. In the setup action, put an immortal: target, true tag, and then in the finish action put immortal: target, false. That will prevent the enemy from collapsing until the skill is done even if their HP reaches 0 mid-attack.

If you want it to break the skill off when the enemy dies mid-skill, there's a tag for that as well (can't remember if off the top of my head).
Late reply, my apologies. There's a workaround I found. I downloaded a plugin "Event Before Victory" and made a skill for the boss to use on itself once its HP is down to 0 by doing a force action on the battle event and a "force collapse: user" on the action sequence tag, so that problem is solved.

@Dirge What tag is it? If it's "break action" on the action sequence, that just cuts off the rest of the skill depending on where you place regardless of the enemy's health.
Death break, I believe
I had to get of the immortal tags on the action sequence for one skill to see if "death break" would work, turns out it did. Thanks you.

Though it seems I have to edit the sequence for every other skill to get immortal off. Plus I'm curious as to how to get the actor back to its original space before the victory scene. Any ideas? Or do I have to use any switches?
Also, here's the sequence I use.

<target action>
if (user.agi > target.agi)
motion swing: user
motion wait: user
action animation: target
motion wait: user
action animation: target
wait for animation
action effect: target
motion wait: user
death break
wait for animation
action effect: target
motion wait: user
death break
else
motion swing: user
motion wait: user
action animation: target
wait for animation
action effect: target
motion wait: user
death break
end
</target action>

So yes, it now breaks the skill when the enemy dies. But I'm not sure what to do to have the actor back to its space before the victory.
Move user: home, 10

Original thread: https://forums.rpgmakerweb.com/threads/issue-with-battle-engine-core-battle-events-at-wrong-time.83860/