Event to make Enemy change to NPC when Defeated

Hi,
can someone help me, with Events. I'm trying to make a scenario where an NPC is Curse and Defeating the Curse NPC will Remove the Curse. now my problem is that Escaping the Battle will trigger the control switch event. i want it to not trigger when escaping. is there a way?? Sorry for bad grammar.
1683717715835.png
yes, check your battleprocessing command.

if you enable the "can lose" option, you'll get multiple branches for different commands, and you only make the change commands in the branch for "if win"
yes, check your battleprocessing command.

if you enable the "can lose" option, you'll get multiple branches for different commands, and you only make the change commands in the branch for "if win"
Thanks

Original thread: https://forums.rpgmakerweb.com/threads/event-to-make-enemy-change-to-npc-when-defeated.157403/