MZ Syn_AdvancedSkills and issue with game not detecting win

After using skill that has restart_battle in formula, game doesn't detect winning a battle as an actual win, and that's really troublesome. I'd be glad if someone took a look at their plugin: https://forums.rpgmakerweb.com/inde...e-effect-items-revert-too.163880/post-1408526
Also image of skill, because maybe I did something wrong
1711387199756.png
unless you have a plugin that installs a common event queue, a skill can only have one attached common event - the other is ignored.
unless you have a plugin that installs a common event queue, a skill can only have one attached common event - the other is ignored.
I have visumz, so it's no problem, and it doesn't matter anyway, since clearing skill of events didn't fixed it
What peculiar is that in code to plugin I can find mentions of CanLose, CanEscape, but not CanWin or something
Update: Turns out every battle outcome (win, lose, escape) stops working, if battle was restarted. I also tried turning off all battle process related plugins, but it didn't helped.
Update 2: I got reply on one of discord servers about it:

"it resets the battle
so maybe it just starts a new battle with the same troop
and then resumes the event after the battle process"

"yea thats why im guessing it starts a new battle processing event
when you restart
and the new one doesnt have the if win/lose/escape"

So that's a clue. Nor this person nor I have idea how to fix that, though.
Problem solved, all thanks to "aesica" discord user. Turns out script was lacking BattleManager._eventCallback which resulted in it deffaulting to escape as only possible outcome, even if you won/lost.
I post fixed version here ("aesica" gave me permission), but all credits go to them and Mouradif, original plugin creator, they're absolute legends
Double-post notice: @Jobhob

This thread is being closed due to being solved. If you need it reopened, report it to let us know why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/syn_advancedskills-and-issue-with-game-not-detecting-win.167164/