Further work on the script interface rework
This commit is contained in:
@@ -6,10 +6,10 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
||||
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Regenerator_(Ability)">Bulbapedia - Regenerator</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "regenerator")]
|
||||
public class Regenerator : Script
|
||||
public class Regenerator : Script, IScriptOnSwitchOut
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnSwitchOut(IPokemon oldPokemon, byte position)
|
||||
public void OnSwitchOut(IPokemon oldPokemon, byte position)
|
||||
{
|
||||
if (!oldPokemon.IsUsable)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user