State which makes enemy untargetable/unhittable except for whitelist

Hi all,
I am trying to make a state which sets up the following restrictions:
- Cannot be targeted and hit by skills except for skills on a white list
- Cannot be hit by AoE skills or multi-target skills (optimally it will jump the target to another valid target if the engine tries to hit it)

Does anyone know of a plugin or a way on how to implement this? I could do without it, but it would be nice for the User experience to not accidentally target the wrong enemy making their moves invalid.

Edit with some background info:
I want to have a necromancer class and what I currently do is I am swapping killed enemies for "soul" placeholders. The souls should only be targetable by a necromancy skill. I don't want other skills or attacks accidentally target the souls in vain or multi-hit skills accidentally have empty hits on the souls.

Thanks so much!

Original thread: https://forums.rpgmakerweb.com/threads/state-which-makes-enemy-untargetable-unhittable-except-for-whitelist.166655/