Further work on refactor to interface based scripts
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Pokemon;
|
||||
|
||||
[Script(ScriptCategory.Pokemon, "ingrain")]
|
||||
public class IngrainEffect : Script
|
||||
public class IngrainEffect : Script, IScriptFailIncomingMove
|
||||
{
|
||||
private readonly IPokemon _owner;
|
||||
|
||||
@@ -24,7 +24,7 @@ public class IngrainEffect : Script
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void FailIncomingMove(IExecutingMove move, IPokemon target, ref bool fail)
|
||||
public void FailIncomingMove(IExecutingMove move, IPokemon target, ref bool fail)
|
||||
{
|
||||
if (move.UseMove.Name == "roar" || move.UseMove.Name == "whirlwind")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user