How to stop enemys attacking same party member?

so sometimes when you give a enemy double or triple attack 1 party members gets hit twice does anyone know how i can stop this like for e:g you could give a enemy double attack where it does 200 damage you have 1 party member on 400 health and the enemy decides to hit that party member twice causing them to die
that is not possible in default - random target is random target.
you can prevent an actor from being a target ever, but then even the first hit will not come.

there are some plugins for advanced targeting options, but usually those require good javascript knowledge to program them.
I think you asked this in another topic too? I gave the following answer there:

You want to prevent the boss to attack the same actor in 1 attack twice, right?

Instead of a double or tripple attack, you can make it hit 2 or 3 random enemies (which means 2 or 3 random actors if the spell is cast by an enemy. Since the actors are the enemies of your enemies.)

If you want the enemy to be less likely to hit the same actors again in future turns, you can make a state, in this state you put "target rate 50%" or even lower if you like.

Make this state last for 2 or 3 rounds and apply it to all skills of the boss.

Now, when an actor is hit by the boss, it will be less likely to be hit again, until the state wears off.

Hope that helps.

Posting your question twice is not going to help you solve it faster, it will only make things more confusing, because people will answer without knowing what was already said.
You can also program the skill in Yanfly's action sequences and forbid it from hitting the same target twice, if possible.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-stop-enemys-attacking-same-party-member.145525/