using PkmnLib.Dynamic.Models;
namespace PkmnLib.Dynamic.Events;
///
/// Event data for when a Pokémon attempts to flee from battle. Indicates which Pokémon attempted to flee and whether the attempt was successful.
///
public class FleeEvent : IEventData
{
///
public FleeEvent(IPokemon pokemon, bool success)
{
Pokemon = pokemon;
Success = success;
}
///
/// The Pokémon that attempted to flee.
///
public IPokemon Pokemon { get; }
///
/// Indicates whether the flee attempt was successful.
///
public bool Success { get; }
///
public EventBatchId BatchId { get; init; }
}