namespace PkmnLib.Plugin.Gen7.Scripts.Items.Pokeballs;
[ItemScript("net_ball")]
public class NetBall : PokeballScript
{
///
public NetBall(IItem item) : base(item)
{
}
///
public override void ChangeCatchRate(IPokemon target, ref byte catchRate)
{
if (target.Types.Any(x => x.Name == TypeNames.Water || x.Name == TypeNames.Bug))
{
catchRate = catchRate.MultiplyOrMax(3.5f);
}
}
}