More moves implemented
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user