Confusion State Issue

I have a Confusion state that lasts for one Action, but I noticed that when I inflict an enemy with it, said enemy won't do anything that turn it got inflicted, and then it will attack itself with a normal attack next turn.

I'm guessing that the enemy is trying to use a different skill that turn when I inflict it, and failing to do so since the Confusion only allows them to hit themselves with a normal attack. But shouldn't the enemy automatically switch to attack themselves when inflicted? Rather than being completely interrupted on that turn?

Is this intended? Seems like a bit of an oversight. Anyone have any clue on how to get the desired effect? Thanks.
In the default battle system, all actions are chosen at the beginning of the turn. So your enemy would've chosen its action and targets already, but when it gets to its turn those targets are invalid.

At the beginning of the next turn, that enemy will choose an action and targets according to the confusion functions.

If you use an alternate battle system where actions are chosen at the time of execution, you'd see the difference.
It's just how it works by default. enemy actions are determined at the start of the round, so if an enemy loses the ability to use what they queued up during the turn, theyll be unable to act during that turn. Then the confusion skill is set at the start of the following one.
Yanfly's AI plugin has a feature to let enemies dynamically choose their turns as they come up, but that might throw off other aspects of your game you already put together
Yeah I figured this was the case. Just seems kind of an odd design decision to me with how ubiquitous of a concept Confusion states are in RPGs, I feel like it should override whatever the enemy was intending to use that turn like how it works in basically any other RPG.

Oh well, I managed to make a custom Confusion state anyway by utilizing Buffs and State Core.
Thank you for the clarification either way.

Original thread: https://forums.rpgmakerweb.com/threads/confusion-state-issue.165406/