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,7 +1,7 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Pokemon;
|
||||
|
||||
[Script(ScriptCategory.Pokemon, "throat_chop")]
|
||||
public class ThroatChopEffect : Script, IScriptPreventMoveSelection
|
||||
public class ThroatChopEffect : Script, IScriptPreventMoveSelection, IScriptFailMove
|
||||
{
|
||||
private int _turns = 3;
|
||||
|
||||
@@ -13,7 +13,7 @@ public class ThroatChopEffect : Script, IScriptPreventMoveSelection
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void FailMove(IExecutingMove move, ref bool fail)
|
||||
public void FailMove(IExecutingMove move, ref bool fail)
|
||||
{
|
||||
if (move.UseMove.HasFlag("sound"))
|
||||
fail = true;
|
||||
|
||||
Reference in New Issue
Block a user