Change your preferences here.
Heals the user 25% if it has used Stockpile once, 50% if it's used Stockpile twice, and 100% if it's used Stockpile thrice. After using Swallow, all Stockpiles are lost. Swallow only removes the defensive boosts gained by Stockpile. If a Pokemon uses Cosmic Power five times, then Stockpiles three times, after using Swallow, the Pokemon will have +5 in both defenses.