Question on the battle processing

I had an idea for an encounter that it is a slime, when it dies it casts an ability called "Split", what this is suppose to do is summon 3 more slimes that have less HP and do way more damage, and I thought it was kind of cool. I've been messing around with it for awhile now and I'm not sure what to do. I made a new skill called Split and it triggers a common event that does a battle process to summon 3 more slimes with those properties. The first time I tried this he didn't even cast it when he died and it didn't do anything until after the battle ended and it gave me the XP and gold for it. Just didn't know if anyone had a solution to this, Thanks as always! (If you need pictures just let me know what they need to be of)
If the last enemy dies, battle is ended before common events are processed - even before troop events are processed.

You need to work with an immortal state to keep the slime alive until after the event is processed (which should also remove the immortal state, allowing the slime to die)
Hmm okay.. I'll mess around with a few things and see what I can do, thanks for the help Andar!

Original thread: https://forums.rpgmakerweb.com/threads/question-on-the-battle-processing.43863/