Target rate question

I have a couple of states that make the actor have 0% target rate but they are still hit by 'scope: all' attacks, is there a way to prevent this? I can make them take no damage obviousy but that still makes the message '0' appear so what I want to make is something that excludes target rate 0% party members from being in scope: all.
Then you'll need to check for target manager type plugins, or scope manager plugins.

This is not possible by default because scope all intentionally ignores target rate (it wouldn't target all otherwise)
I have a couple of states that make the actor have 0% target rate but they are still hit by 'scope: all' attacks, is there a way to prevent this?
You can make the code do whatever you want, but that's not the purpose of the target rate. It makes the actors more or less likely to be selected as a target in comparison to each other, not to make them immune to damage.

If you don't want to go another way and prefer to do this, you could try using VisuStella Battle Core and put this notetag in your Scope: All skills:
Code:
<JS Targets>
targets = targets.filter(battler => battler.tgr>0);
</JS Targets>
Yes! thats exactly what I was looking for. Thanks.

Original thread: https://forums.rpgmakerweb.com/threads/target-rate-question.156053/