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:
@@ -3,7 +3,7 @@ using PkmnLib.Static.Moves;
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Pokemon;
|
||||
|
||||
[Script(ScriptCategory.Pokemon, "taunt")]
|
||||
public class TauntEffect(int turns) : Script, IScriptPreventMoveSelection
|
||||
public class TauntEffect(int turns) : Script, IScriptPreventMoveSelection, IScriptFailMove
|
||||
{
|
||||
private int _turns = turns;
|
||||
|
||||
@@ -17,7 +17,7 @@ public class TauntEffect(int turns) : Script, IScriptPreventMoveSelection
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void FailMove(IExecutingMove move, ref bool fail)
|
||||
public void FailMove(IExecutingMove move, ref bool fail)
|
||||
{
|
||||
if (move.ChosenMove.MoveData.Category == MoveCategory.Status)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user