Common event bug that I can't identify ...

As the title suggests, I can't really understand where and what I'm doing wrong ... 1vs1 combat, monster catching type of game. I did this common event to be able to freely choose between reserves after an actor fell. Against a single enemy, it works perfectly... But, when I face a troope battle with more than one enemy and have swapped at least one actor, the common event act alone every time a new enemy appears,without respecting its rules. Can anyone help me ... please?

Active plugins





I even test it as a skill linked to the event, and the bug is still present, even if in another form ... In that case it again change correctly the actors but immediately asked for another swap, activating the common event twice
Common event.png

"Salta turno nemico" is enemy skip turn
Ok, I solved it! For now, at least ...

Original thread: https://forums.rpgmakerweb.com/threads/common-event-bug-that-i-cant-identify.124602/