Implementation of Pokeballs

This commit is contained in:
Deukhoofd committed 2025-01-10 11:58:23 +01:00
1 parent 0518499a4c
commit 42e3273483
15 files changed
+254 -12

No files matched your search

+7
View File
@@ -217,6 +217,13 @@ public class BattleSideImpl : ScriptSource, IBattleSide
/// <inheritdoc />
public void ForceClearPokemonFromField(byte index)
{
var pokemon = _pokemon[index];
if (pokemon is not null)
{
pokemon.RunScriptHook(script => script.OnRemove());
pokemon.SetOnBattlefield(false);
}
_pokemon[index] = null;
}