Files
PkmnLib.NET/Plugins/PkmnLib.Plugin.Gen7/Scripts/Items/Pokeballs/HealBall.cs

23 lines
556 B
C#

namespace PkmnLib.Plugin.Gen7.Scripts.Items.Pokeballs;
[ItemScript("heal_ball")]
public class HealBall : PokeballScript
{
/// <inheritdoc />
public HealBall(IItem item) : base(item)
{
}
/// <inheritdoc />
public override void ChangeCatchRate(IBattlePokemon target, ref byte catchRate)
{
}
/// <inheritdoc />
public override void OnAfterSuccessfulCapture(IBattlePokemon target)
{
target.Heal(target.MaxHealth, true, forceHeal: true);
target.ClearStatus();
target.RestoreAllPP();
}
}