Further work on refactor to interface based scripts
This commit is contained in:
@@ -17,10 +17,10 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
||||
/// (from Generation VI onward), switches out or faints, or the battle ends.
|
||||
/// </remarks>
|
||||
[Script(ScriptCategory.Move, "autotomize")]
|
||||
public class Autotomize : Script
|
||||
public class Autotomize : Script, IScriptOnSecondaryEffect
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
public void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
{
|
||||
var user = move.User;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user