Further work on the script interface rework
This commit is contained in:
@@ -8,12 +8,12 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
||||
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Slow_Start_(Ability)">Bulbapedia - Slow Start</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "slow_start")]
|
||||
public class SlowStart : Script
|
||||
public class SlowStart : Script, IScriptOnSwitchIn
|
||||
{
|
||||
private IPokemon? _pokemon;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void OnSwitchIn(IPokemon pokemon, byte position)
|
||||
public void OnSwitchIn(IPokemon pokemon, byte position)
|
||||
{
|
||||
_pokemon = pokemon;
|
||||
pokemon.Volatile.Add(new SlowStartEffect());
|
||||
|
||||
Reference in New Issue
Block a user