If a creature gains hexproof in response to a spell or ability controlled by an opponent that targets only it, that spell or ability doesn’t resolve for having an illegal target when it tries to resolve.