I don't know if the substitute state is working properly

So, basically I have this character with a skill that activates the substitute state, allowing him to protect allies with low hp. But some times, at random, he just won't protect them. Sometimes an ally has very low hp and dies because the said character with substitute state is not protecting her.

I searched the rmvxace guide for info and there is nothing detailed about how substitute works... Does it have a chance of affect or is something wrong with my engine?
you don't give enough info to even guess. It can be some damaged script, but it can also be normal.

there is a few conditions when a substitute flag might fail, especially if it is given by a state instead of being permanent.
I don't remember the exact code and don't have Ace installed anymore, but it could easily be an error in the state as well.
Please provide screenshots of the state and the skill for us to check.

Original thread: https://forums.rpgmakerweb.com/threads/i-dont-know-if-the-substitute-state-is-working-properly.148244/