Move all battle state from IPokemon to an ephemeral IBattlePokemon wrapper
This commit is contained in:
@@ -3,7 +3,7 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Side;
|
||||
[Script(ScriptCategory.Side, "double_power_if_target_damaged_in_turn_data")]
|
||||
public class DoublePowerIfTargetDamagedInTurnData : Script, IScriptOnEndTurn, IScriptOnDamage
|
||||
{
|
||||
public readonly HashSet<IPokemon> HitPokemon = [];
|
||||
public readonly HashSet<IBattlePokemon> HitPokemon = [];
|
||||
|
||||
/// <param name="owner"></param>
|
||||
/// <param name="battle"></param>
|
||||
@@ -14,7 +14,7 @@ public class DoublePowerIfTargetDamagedInTurnData : Script, IScriptOnEndTurn, IS
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public void OnDamage(IPokemon pokemon, DamageSource source, uint oldHealth, uint newHealth)
|
||||
public void OnDamage(IBattlePokemon pokemon, DamageSource source, uint oldHealth, uint newHealth)
|
||||
{
|
||||
HitPokemon.Add(pokemon);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user