Move all battle state from IPokemon to an ephemeral IBattlePokemon wrapper
This commit is contained in:
@@ -12,7 +12,7 @@ public record AbilityTriggerEvent : IEventData
|
||||
/// <summary>
|
||||
/// The Pokémon whose ability is being triggered.
|
||||
/// </summary>
|
||||
public IPokemon Pokemon { get; }
|
||||
public IBattlePokemon Pokemon { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The ability that is being triggered for the Pokémon.
|
||||
@@ -22,7 +22,7 @@ public record AbilityTriggerEvent : IEventData
|
||||
public Dictionary<StringKey, object?>? Metadata { get; init; } = null;
|
||||
|
||||
/// <inheritdoc cref="AbilityTriggerEvent"/>
|
||||
public AbilityTriggerEvent(IPokemon pokemon)
|
||||
public AbilityTriggerEvent(IBattlePokemon pokemon)
|
||||
{
|
||||
Pokemon = pokemon;
|
||||
Ability = pokemon.ActiveAbility;
|
||||
|
||||
Reference in New Issue
Block a user