More warning fixes
This commit is contained in:
@@ -5,7 +5,7 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Side;
|
||||
[Script(ScriptCategory.Side, "double_power_if_target_damaged_in_turn_data")]
|
||||
public class DoublePowerIfTargetDamagedInTurnData : Script
|
||||
{
|
||||
public HashSet<IPokemon> _hitPokemon = new();
|
||||
public readonly HashSet<IPokemon> HitPokemon = [];
|
||||
|
||||
/// <param name="battle"></param>
|
||||
/// <inheritdoc />
|
||||
@@ -17,6 +17,6 @@ public class DoublePowerIfTargetDamagedInTurnData : Script
|
||||
/// <inheritdoc />
|
||||
public override void OnDamage(IPokemon pokemon, DamageSource source, uint oldHealth, uint newHealth)
|
||||
{
|
||||
_hitPokemon.Add(pokemon);
|
||||
HitPokemon.Add(pokemon);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user