Further work on the script interface rework
This commit is contained in:
@@ -7,7 +7,7 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
||||
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Anticipation_(Ability)">Bulbapedia - Anticipation</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "anticipation")]
|
||||
public class Anticipation : Script
|
||||
public class Anticipation : Script, IScriptOnOpponentSwitchIn
|
||||
{
|
||||
private IPokemon? _owner;
|
||||
|
||||
@@ -20,7 +20,7 @@ public class Anticipation : Script
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void OnOpponentSwitchIn(IPokemon pokemon, byte position)
|
||||
public void OnOpponentSwitchIn(IPokemon pokemon, byte position)
|
||||
{
|
||||
if (_owner is null)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user