This item is a result of an AI-based algorithm, which may not always be correct. Below it's the reasoning behind the AI's decision.
You can tell it what it did wrong and how it should be done instead.
Make necromancer unable to kill/hit their own allies, so when you revive the npc it can't take damage from you.