MV Yanfly Death affecting all enemies

Hello, so I went through this tutorial: http://www.yanfly.moe/wiki/Death_(MV_Plugin_Tips_&_Tricks) and was able to successfully make Death happen. Only thing is it only affects one enemy.

If I set it to affect all enemies, it will kill one and miss all the others. I assume this is because it calculates the current MP every hit.

Any way to "fix" this?

Thanks
Bumping
I can think of two ways to try this, both of which are different kinds of complicated.

1) Make the skill add a state to the actor casting it. Take the After Eval out. Make the skill call a common event that goes through the party to find the party member with that state, set their MP to 0, and remove the state. This should work because common events on skills don't get called until the skill has finished entirely.

2) Reprogram the entire thing using action sequences. Anything in the Whole Action section will affect all of your multiple targets simultaneously, then you'd wait until the Follow Action to remove the user's MP.
Make the skill add a state to the actor casting it.

How do i do this? Would this be in the damage formula box?

Edit: Ok, I got it. I removed the After Eval out of the skill note box.

New Formula: a.addState(297); a.mp * 4 (where 297 is called Death Workaround)

Common Event:

Deathlookout.png


Works like a charm. Just make sure your state dosnt have an icon, because it will show up for a split second and get deleted.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-death-affecting-all-enemies.139552/