MV State with Action Restriction + Action End Fix for Enemies

Hello.

So I'd like to request a small plugin/hotfix that would solve the issue of states that have the Action Restriction effect being added to an enemy and then not being removed after that enemy's turn ends (when the state is set to expire after Action End). This isn't the case for actors BTW, here the inflicted actor will just skip the turn and then the state will be removed.

I know I can just make the state get removed on Turn End but here comes the problem that if said enemy had their turn before the battler who inflicted the state, the state will get removed at the end of the entire turn regardless, rendering it useless.

Original thread: https://forums.rpgmakerweb.com/threads/state-with-action-restriction-action-end-fix-for-enemies.161684/