Bug Special Effect Escape Bug

I've been trying to create an item (smoke grenade) that when used causes the party to escape 100% of the time. However, when I attempt to use the RTP database commands and parameters, it results in an instant game over.

Spoiler: screenshot
1604259180727.png

After putting breakpoints into the js.manager code, I saw that it goes into a function which declares the entire party to be dead and then goes to the end game scene manager.
that is a problem but not a bug - the escape effect was never intended to be used on actors, it is there to remove enemies from the battle. The actors should either use the run-button on the main party menu, or you would have to make the skill call a common event with the abort battle command.
If you use the escape effect on a party member, it is treated as if they are no longer part of the party, which causes a game over effect if you're in battle, as there is no one left in the party to fight.

This is similar to effects in games like Final Fantasy where a skill could blow someone out of the battle permanently, and if it happened to all present members of the party, the game would end.

Original thread: https://forums.rpgmakerweb.com/threads/special-effect-escape-bug.129437/