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, "belch")]
public class Belch : Script
public class Belch : Script, IScriptPreventMoveSelection
{
/// <inheritdoc />
public override void PreventMoveSelection(IMoveChoice choice, ref bool prevent)
public void PreventMoveSelection(IMoveChoice choice, ref bool prevent)
{
var battleData = choice.User.BattleData;
if (battleData == null)