Ending a battle after two specific enemies are defeated?

Hi everyone, I need a little help.
I want to make a boss which consists of three enemies: the leader and two minions. But make it so the battle ends once you defeat the two minions (the leader cannot be beaten). Does anyone know how to do it? Thanks in advance.
Try this and see if it helps ^_^
Spoiler
Capture.PNG
Try this and see if it helps ^_^
Thank you for the response.
Does it work for you? I think I did the exact same thing but it doesn't work for me 🙁
Screenshot_1.png

Original thread: https://forums.rpgmakerweb.com/threads/ending-a-battle-after-two-specific-enemies-are-defeated.116106/