namespace PkmnLib.Plugin.Gen7.Scripts.Abilities; /// /// Swift Swim is an ability that doubles the Pokémon's Speed in rain. /// /// Bulbapedia - Swift Swim /// [Script(ScriptCategory.Ability, "swift_swim")] public class SwiftSwim : Script, IScriptChangeSpeed { /// public void ChangeSpeed(ITurnChoice choice, ref uint speed) { if (choice.User.BattleData?.Battle.WeatherName == ScriptUtils.ResolveName()) { speed = speed.MultiplyOrMax(2); } } }