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