Refactor move selection prevention to use interface

This commit is contained in:
Deukhoofd committed 2025-06-28 10:36:43 +02:00
1 parent 04cf585f5a
commit 2319160b52
12 files changed
+59 -27

No files matched your search

@@ -1,10 +1,10 @@
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
[Script(ScriptCategory.Move, "celebrate")]
public class Celebrate : Script
public class Celebrate : Script, IScriptPreventMoveSelection
{
/// <inheritdoc />
public override void PreventMoveSelection(IMoveChoice choice, ref bool prevent)
public void PreventMoveSelection(IMoveChoice choice, ref bool prevent)
{
// This move is mostly useless, and it's not worth the effort to implement it.
// Prevent it from being selected.