Further work on refactor to interface based scripts

This commit is contained in:
2025-06-28 18:40:33 +02:00
parent b7bdf2b744
commit 436d1899e0
352 changed files with 940 additions and 867 deletions

View File

@@ -3,7 +3,7 @@ using PkmnLib.Plugin.Gen7.Scripts.Utils;
namespace PkmnLib.Plugin.Gen7.Scripts.Pokemon;
[Script(ScriptCategory.Pokemon, "ice_ball")]
public class IceBallEffect : Script, IScriptForceTurnSelection
public class IceBallEffect : Script, IScriptForceTurnSelection, IScriptOnMoveMiss
{
private readonly IPokemon _owner;
private readonly StringKey _moveName;
@@ -24,7 +24,7 @@ public class IceBallEffect : Script, IScriptForceTurnSelection
}
/// <inheritdoc />
public override void OnMoveMiss(IExecutingMove move, IPokemon target)
public void OnMoveMiss(IExecutingMove move, IPokemon target)
{
RemoveSelf();
}