namespace Gen7 { [Ability effect=CheekPouch] class CheekPouch : PkmnScript { void OnAfterHeldItemConsume(Pokemon@ pokemon, const Item@ item) override { if (item.Category == ItemCategory::Berry){ pokemon.Heal(pokemon.MaxHealth / 4); } }; } }