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