namespace PkmnLib.Plugin.Gen7.Scripts.Abilities; /// /// Unburden is an ability that doubles the Pokémon's Speed if it loses its held item. /// /// Bulbapedia - Unburden /// [Script(ScriptCategory.Ability, "unburden")] public class Unburden : Script { /// public override void ChangeSpeed(ITurnChoice choice, ref uint speed) { if (choice.User.HasItemBeenRemovedForBattle) { speed = speed.MultiplyOrMax(2); } } }