I have this bug where the enemies will still attack after they have been defeated. So after they vanish, they still attack the party and since they aren't really there, there's no way to stop them. I have tried different custom battle scripts but I keep getting the same bug no matter what I do. Even when I remove the CBS the bug still remains. The battles scripts I have tried using were RTAB v1.14-1.16, Trickster RTAB 2.1, and Individual Turns Battle System. I doubt that it's the battle script because in the demos I did not have this problem, but after I copied my data folder over to the demo, the bug came back. Is it because of one of my maps or something? How would I be able to fix this bug?
If there is anything you would need in order to better help me, like the scripts I have right now, please tell me.