Further work on refactor to interface based scripts
This commit is contained in:
@@ -3,7 +3,7 @@ using PkmnLib.Plugin.Gen7.Scripts.Utils;
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Pokemon;
|
||||
|
||||
[Script(ScriptCategory.Pokemon, "bide")]
|
||||
public class BideEffect : Script, IScriptForceTurnSelection
|
||||
public class BideEffect : Script, IScriptForceTurnSelection, IScriptOnIncomingHit
|
||||
{
|
||||
private readonly IPokemon? _owner;
|
||||
public byte Turns;
|
||||
@@ -20,7 +20,7 @@ public class BideEffect : Script, IScriptForceTurnSelection
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void OnIncomingHit(IExecutingMove move, IPokemon target, byte hit)
|
||||
public void OnIncomingHit(IExecutingMove move, IPokemon target, byte hit)
|
||||
{
|
||||
HitBy.Add(move.User);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user