Imagine a person who warns you not to walk in a particular direction as there is a pit/hole, but you continued anyway and fell into that hole. The person then comes to you and instead of helping you in that dire situation, mocks you for not following his advice.
Is there any specific word (noun) to address such type of people, e.g. narcissist, egoist?