As the title say.
In the case of relics, there is ticket #5007 to remove the Health component of relics. but this solution is only fine for stable invulnerability, but we may still have temporary ones (as is already the case for cheering, and could be extended by mods).
This will be used in a next patch to prevent the ai to attack relics.