namespace PkmnLib.Plugin.Gen7.Scripts.Abilities; /// /// Sand Rush is an ability that doubles the Pokémon's Speed during a sandstorm. /// /// Bulbapedia - Sand Rush /// [Script(ScriptCategory.Ability, "sand_rush")] public class SandRush : Script { /// public override void ChangeSpeed(ITurnChoice choice, ref uint speed) { if (choice.User.BattleData?.Battle.WeatherName == ScriptUtils.ResolveName()) { speed = speed.MultiplyOrMax(2); } } // TODO: Prevent sandstorm damage. }