More moves implemented

This commit is contained in:
2025-03-08 15:48:33 +01:00
parent 77f1ab243b
commit 7f5088b763
15 changed files with 393 additions and 20 deletions

View File

@@ -71,7 +71,10 @@ public static class TurnRunner
}
}
private static void ExecuteChoice(IBattle battle, ITurnChoice choice)
/// <summary>
/// Runs a single choice in a battle.
/// </summary>
public static void ExecuteChoice(IBattle battle, ITurnChoice choice)
{
if (choice is IPassChoice)
return;

View File

@@ -737,6 +737,13 @@ public class PokemonImpl : ScriptSource, IPokemon
/// <inheritdoc />
public IItem? RemoveHeldItem()
{
if (HeldItem is not null)
{
if (HeldItem.Category == ItemCategory.FormChanger)
{
return null;
}
}
var previous = HeldItem;
HeldItem = null;
return previous;