Further work on refactor to interface based scripts
This commit is contained in:
@@ -18,10 +18,10 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
||||
/// target.
|
||||
/// </remarks>
|
||||
[Script(ScriptCategory.Move, "attract")]
|
||||
public class Attract : Script
|
||||
public class Attract : Script, IScriptOnSecondaryEffect
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
public void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
{
|
||||
if (target.Gender == move.User.Gender)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user