This commit is contained in:
13
Plugins/PkmnLib.Plugin.Gen7/Scripts/Side/StickyWebEffect.cs
Normal file
13
Plugins/PkmnLib.Plugin.Gen7/Scripts/Side/StickyWebEffect.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Side;
|
||||
|
||||
[Script(ScriptCategory.Side, "sticky_web")]
|
||||
public class StickyWebEffect : Script
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnSwitchIn(IPokemon pokemon, byte position)
|
||||
{
|
||||
if (pokemon.IsFloating)
|
||||
return;
|
||||
pokemon.ChangeStatBoost(Statistic.Speed, -1, false);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user