How to make enemies stop targeting PCs when a state is in effect?

You're handed a solution to one problem and it just leads another!

So with some help from all you lovely people, I've figured out how to get MV treating the Stone state like a Game Over event when the entire party's afflicted with it.

The new problem I'm having is that enemies keep attacking the PCs even when they're afflicted with the Stone state. I'd like the enemies to basically view the PCs as dead when they're Stoned (pun intended). I've done the Google searching and such and I'm still a bit lost. Any advice would be appreciated.
sp-parameter: target rate
still get hit by AoEs but enemies wont directly target them if stone state has target rate 0%

otherwise you could use plugins like yanflys selection control
sp-parameter: target rate
still get hit by AoEs but enemies wont directly target them if stone state has target rate 0%

otherwise you could use plugins like yanflys selection control

Thanks so much! It feels like for every issue, I should just err on side of "check Yanfly's plugins."

Love your avatar pic.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-enemies-stop-targeting-pcs-when-a-state-is-in-effect.130497/