Refactor move classes to implement respective interfaces for better structure
All checks were successful
Build / Build (push) Successful in 52s
All checks were successful
Build / Build (push) Successful in 52s
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Pokemon;
|
||||
|
||||
[Script(ScriptCategory.Pokemon, "fury_cutter")]
|
||||
public class FuryCutterEffect : Script
|
||||
public class FuryCutterEffect : Script, IScriptOnBeforeMove
|
||||
{
|
||||
public int TurnCount { get; set; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void OnBeforeMove(IExecutingMove move)
|
||||
public void OnBeforeMove(IExecutingMove move)
|
||||
{
|
||||
if (move.UseMove.Name != "fury_cutter")
|
||||
RemoveSelf();
|
||||
|
||||
Reference in New Issue
Block a user