Cleanup, move OnBeforeAnyHookInvoked function to an interface
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
||||
|
||||
[Script(ScriptCategory.Move, "moongeist_beam")]
|
||||
public class MoongeistBeam : Script
|
||||
public class MoongeistBeam : Script, IScriptOnBeforeAnyHookInvoked
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnBeforeAnyHookInvoked(ref List<ScriptCategory>? suppressedCategories)
|
||||
public void OnBeforeAnyHookInvoked(ref List<ScriptCategory>? suppressedCategories)
|
||||
{
|
||||
suppressedCategories ??= [];
|
||||
suppressedCategories.Add(ScriptCategory.Ability);
|
||||
|
||||
Reference in New Issue
Block a user