Deukhoofd 77d7b86a3c
All checks were successful
Build / Build (push) Successful in 1m2s
Implement most pokeballs
2025-07-20 11:15:45 +02:00

23 lines
544 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(IPokemon target, ref byte catchRate)
{
}
/// <inheritdoc />
public override void OnAfterSuccessfulCapture(IPokemon target)
{
target.Heal(target.MaxHealth, true, forceHeal: true);
target.ClearStatus();
target.RestoreAllPP();
}
}