This commit is contained in:
19
Plugins/PkmnLib.Plugin.Gen7/Scripts/Abilities/SlushRush.cs
Normal file
19
Plugins/PkmnLib.Plugin.Gen7/Scripts/Abilities/SlushRush.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void ChangeSpeed(ITurnChoice choice, ref uint speed)
|
||||
{
|
||||
if (choice.User.BattleData?.Battle.WeatherName == ScriptUtils.ResolveName<Weather.Hail>())
|
||||
{
|
||||
speed *= 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user