19 lines
610 B
C#
19 lines
610 B
C#
namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
|
|
|
/// <summary>
|
|
/// Slush Rush is an ability that doubles the Pokémon's Speed during hail.
|
|
///
|
|
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Slush_Rush_(Ability)">Bulbapedia - Slush Rush</see>
|
|
/// </summary>
|
|
[Script(ScriptCategory.Ability, "slush_rush")]
|
|
public class SlushRush : Script, IScriptChangeSpeed
|
|
{
|
|
/// <inheritdoc />
|
|
public void ChangeSpeed(ITurnChoice choice, ref uint speed)
|
|
{
|
|
if (choice.User.BattleData?.Battle.WeatherName == ScriptUtils.ResolveName<Weather.Hail>())
|
|
{
|
|
speed *= 2;
|
|
}
|
|
}
|
|
} |