Yanfly Passive State Help!

So I'm trying to create an item that after the user falls below 25% He gains a barrier equal to a certain amount (haven't decided what would be balanced yet) It's similar to the auto life/phoenix ring he went over in one of his tips and tricks video. However I don't want the item to break afterwards, after the effect triggers the passive state will not go away. I assume this is because the item always has <Passive state: x> in it's note tag. Anyone have an item similar to this or know how to solve this problem. Thanks a lot!
Try using


<Custom Passive Condition>


eval: this._activated = false;


</Custom Passive Condition>


Then on the state


<Custom Conclude Effect>


eval: this._activated = true;


</Custom Conclude Effect>


I haven't tested this, it's just an idea that you might be able to use to figure out a solution.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-passive-state-help.68136/