Cleanup, move OnBeforeAnyHookInvoked function to an interface
This commit is contained in:
@@ -9,10 +9,10 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
||||
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Air_Lock_(Ability)">Bulbapedia - Air Lock</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "suppress_weather")]
|
||||
public class SuppressWeatherAbility : Script
|
||||
public class SuppressWeatherAbility : Script, IScriptOnBeforeAnyHookInvoked
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnBeforeAnyHookInvoked(ref List<ScriptCategory>? suppressedCategories)
|
||||
public void OnBeforeAnyHookInvoked(ref List<ScriptCategory>? suppressedCategories)
|
||||
{
|
||||
suppressedCategories ??= [];
|
||||
suppressedCategories.Add(ScriptCategory.Weather);
|
||||
|
||||
Reference in New Issue
Block a user