Further work on the script interface rework
This commit is contained in:
@@ -8,10 +8,10 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
||||
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Delta_Stream_(Ability)">Bulbapedia - Delta Stream</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "delta_stream")]
|
||||
public class DeltaStreamAbility : Script
|
||||
public class DeltaStreamAbility : Script, IScriptOnSwitchIn
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnSwitchIn(IPokemon pokemon, byte position)
|
||||
public void OnSwitchIn(IPokemon pokemon, byte position)
|
||||
{
|
||||
var battle = pokemon.BattleData?.Battle;
|
||||
if (battle == null)
|
||||
|
||||
Reference in New Issue
Block a user