Need help with a state immunity if already has the state applied

Talking about a state, is there any way to set up an immunity to a state that has been already applied? By default Ace's mechanic, if the state is applied for the second time, the no. of remaining turn will be reset. I don't want all states to work this way.

 

For example, while a player has sleep state, if the enemy casts sleep upon the player, I don't want the remaining turn to be reset. It should no longer have an effect to the target that already has it.

 

Can it be possible to do this?

 

Thank you!
Yes: https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/buff-state-manager/

Just add <reapply ignore> to all states that you want to work like you described.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-a-state-immunity-if-already-has-the-state-applied.38262/