G-Max Replenish inflicts damage and has a 50% chance of restoring any Berries consumed by the user or its allies. This additional effect is not considered one for purposes of Serene Grace or Sheer Force.
G-Max Replenish can recover Berries consumed by Fling; however, it cannot recover Berries transferred to another Pokémon, Berries destroyed by Incinerate or Knock Off, or Berries eaten with Bug Bite or Pluck. It also cannot restore a Berry if it was collected by a Pokémon with Pickup.