Porygon-Z (5e Creature)
From D&D Wiki
Small construct, any alignment
Analytic. When the porygon-z hits a creature with an attack, it has advantage on all attack rolls against that creature until the end of its next turn.
Download. When the porygon-z rolls for initiative, it can give itself one of two benefits: creatures have disadvantage on saving throws against its Tri-Attack action, or it has advantage on attack rolls with its Force Beam.
Adaptability. Once per turn, when the porygon-z deals damage to a creature and has resistance or immunity to at least one damage type, it can choose to deal an additional 7 (2d6) damage of a type it is resistant or immune to.
Force Beam. Ranged Spell Attack: +8 to hit, reach 5 ft., one target. Hit: 22 (5d6 + 5) damage of a type of the porygon-z's choice.
Tri-Attack. The porygon-z launches three balls of force at one creature within 60 feet of it. The target must succeed on a DC 16 Dexterity saving throw against each one or take 7 (2d6) force damage per orb.
Conversion-Z. The porygon-z gains immunity to two damage types of its choice for 1 minute, or until its concentration is broken (as if concentrating on a spell).