Further work on the script interface rework
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Battle;
|
||||
|
||||
[Script(ScriptCategory.Battle, "water_sport")]
|
||||
public class WaterSportEffect : Script, IScriptChangeMoveDamage
|
||||
public class WaterSportEffect : Script, IScriptChangeMoveDamage, IScriptOnSwitchOut
|
||||
{
|
||||
public readonly HashSet<IPokemon> Placers = new();
|
||||
|
||||
@@ -15,7 +15,7 @@ public class WaterSportEffect : Script, IScriptChangeMoveDamage
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void OnSwitchOut(IPokemon oldPokemon, byte position)
|
||||
public void OnSwitchOut(IPokemon oldPokemon, byte position)
|
||||
{
|
||||
if (!Placers.Contains(oldPokemon))
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user