using System.Collections.Generic; namespace PkmnLib.Plugin.Gen7.Scripts.Side; [Script(ScriptCategory.Side, "double_power_if_target_damaged_in_turn_data")] public class DoublePowerIfTargetDamagedInTurnData : Script { public HashSet _hitPokemon = new(); /// /// public override void OnEndTurn(IBattle battle) { RemoveSelf(); } /// public override void OnDamage(IPokemon pokemon, DamageSource source, uint oldHealth, uint newHealth) { _hitPokemon.Add(pokemon); } }