Cleanup, move OnBeforeAnyHookInvoked function to an interface
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Side;
|
||||
|
||||
[Script(ScriptCategory.Side, "teravolt")]
|
||||
public class TeravoltEffect : Script
|
||||
public class TeravoltEffect : 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