MZ Official ARPG Plugin - _battler is not defined

hello,
I am using the Official ARPG plugin and everything was working great, until I found this really weird error.
Basically all of my enemies work as normal, but when I leave/re-enter a room, everything breaks. Basically what happens is when the enemy attacks, the game shuts down with the error in the title. I have gone through the code for the Plugin, and I think I know why it is happening but I don't know how to fix it.
Help would be appreciated.
Some screenshots might help, but based on your description it sounds like you need to add a control event (autorun with an erase after) to your maps that runs this:
1739126397523.png

Edit: note Self Switch 22 is based on their sample project $resetrequest switch, if you are building from scratch, you can change this to whatever works.
Some screenshots might help, but based on your description it sounds like you need to add a control event (autorun with an erase after) to your maps that runs this:
View attachment 331070
Edit: note Self Switch 22 is based on their sample project $resetrequest switch, if you are building from scratch, you can change this to whatever works.
This worked! Thanks.

Original thread: https://forums.rpgmakerweb.com/threads/official-arpg-plugin-_battler-is-not-defined.175300/