Further work on refactor to interface based scripts
This commit is contained in:
@@ -7,10 +7,10 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
||||
/// then confuses the user.
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Move, "thrash")]
|
||||
public class Thrash : Script
|
||||
public class Thrash : Script, IScriptOnSecondaryEffect
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
public void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
{
|
||||
if (move.User.Volatile.Contains<ThrashEffect>())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user