More moves implemented

This commit is contained in:
Deukhoofd committed 2025-03-08 15:48:33 +01:00
1 parent 77f1ab243b
commit 7f5088b763
15 files changed
+393 -20

No files matched your search

@@ -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;
+7
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;