Thank you for playing!
Seems like it's better to stick to default battle system or premade plugin next time. I wanted to try to make my own battle system but now that it finished, it does not feel worth the effort and less rewarding than expected. Luckily, I tried it on a jam instead a full game.