When first encountered, a jubjub bird has no energy resistance. When damaged by an attack that causes cold, electricity, fire, or sonic damage, it gains resistance 30 to that energy type until the end of its next turn. If an attack causes more than one type of energy damage, the jubjub bird gains resistance 30 to all the types of energy damage dealt.