Whenever the creature is subjected to lightning damage, it takes no damage and instead regains a number of hit points equal to the lightning damage dealt.