I see you're also having the same issue.
Here's a copy of my project file, with the [audio] and folders deleted. Just add the default audio and img folder from a new project into it and you should be able to try it out.
The only plugin is "YEP Battle Engine Core" and this problem still happens with the addition of other plugins. [Such as Buffs & States Core]
I had my buddy download my file, and he said the states didn't go down on his end.
He created his own project folder, added the YEP Battle Engine Core to it, and said he didn't have the bug.
He then sent me the file, and the file was bugged after I got it.
So there's something odd being done to the file when it's ran on my computer, and it's irreversible.
Currently, it seems the "Cannot Move" restriction on states causes them not to be removed or change how many turns are on the state.
I was having the Poison bug earlier, but it doesn't seem to be happening anymore. So that's a plus.
Try it yourself, if you want to see it in action. Perhaps someone else can trouble shoot it and tell us what is causing this on our ends. Thanks.
Here are the steps I took to replicate it, though you may not have the same issues on your end:
Spoiler: Steps to Replicate
1. Made a new Project file.
2. Put the YEP_BattleEngineCore into my plugin folder of JS folder.
3. Added the Plugin and turned it on.
4. Changed the Sleep state to 1 turn, unticked Remove by Damage, made sure Restriction was "Cannot Move".
5. Made it so I had a 100% chance to inflict Sleep on enemies with the Hero (or any other) class. (Or low chance for enemies to Sleep if you want)
6. Watch while enemies never have Sleep get removed and it stays on permanently. The turn counter for it to go down never goes down.
Here is some things I tried:
Spoiler: Failed Solutions
- Creating a new Project Folder.
- Clean Reinstall of RPG Maker MV, including uninstalling and deleting the "steamapps/RPG Maker MV" folder.
- Copying old JS files from Patch 1.5.2
- Copying a working project from someone else, only to have it break when I try it.
However, I implore you try these solutions on your own, incase you find a solution in these steps.[/audio]