Further work on refactor to interface based scripts
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
||||
|
||||
[Script(ScriptCategory.Move, "recoil")]
|
||||
public class Recoil : Script, IScriptOnInitialize
|
||||
public class Recoil : Script, IScriptOnInitialize, IScriptOnSecondaryEffect
|
||||
{
|
||||
private float _recoilPercentage;
|
||||
|
||||
@@ -15,7 +15,7 @@ public class Recoil : Script, IScriptOnInitialize
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
public void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
{
|
||||
if (_recoilPercentage <= 0)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user