[Resolved] Yanfly State React Effect Question - What Am I Doing Wrong This Time?

Hello people.

I'm trying to make a game mechanic where:
>Battlers with 0 MP are afflicted with State A
>Battlers that receive damage while afflicted with State A are in turn afflicted with State B.

I decided to make State A into a passive using Yanfly's Buff & State Core & AutoPassiveStates plugins.

This is what I put in the Notes section:

Code:
<Passive Condition: MP Below 1>
<Custom React Effect>
if (this.isHpEffect() && value > 0) {
  target.addState(10);
}
</Custom React Effect>

See anything wrong with it? Because my non-coder ass just can't seem to make it work.

Thanks a bunch.
Did you apply the passive to the actor? If not, you need to either add the state to the Autopassive plugin parameters or use this notetag in the actors' and/or enemies' notebox:

<Passive State: StateAID>

If everything is supposed to be affected, the plugin parameter would be a lot quicker.
Okay, that was my bad. I was testing it with the default ID:10 state, Sleep, which was instantly removed by the same damage that applied it.
The issue has been resolved, you can close this, thank you very much.

Original thread: https://forums.rpgmakerweb.com/threads/resolved-yanfly-state-react-effect-question-what-am-i-doing-wrong-this-time.88811/