Return Party Member if Summon Dies

Hi i'm using RPG Maker Mv and I made used this summon system (below Vid)but the thing is i don't know how to make all my party members come back if my summon dies in the battle because when he dies all it does is bring a game over screen. Pls help.








)
I'm going to assume this system is a plugin, therefore I'm moving this to plugin support. If I'm wrong, let me know and I'll move it again.

Original thread: https://forums.rpgmakerweb.com/threads/return-party-member-if-summon-dies.72170/