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/Natural_Cure_(Ability)">Bulbapedia - Natural Cure</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "natural_cure")]
|
||||
public class NaturalCure : Script
|
||||
public class NaturalCure : Script, IScriptOnSwitchOut
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnSwitchOut(IPokemon oldPokemon, byte position)
|
||||
public void OnSwitchOut(IPokemon oldPokemon, byte position)
|
||||
{
|
||||
if (!oldPokemon.StatusScript.IsEmpty)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user