Deukhoofd 6c13d20bf7
All checks were successful
Build / Build (push) Successful in 52s
Even more abilities
2025-06-14 11:30:56 +02:00

24 lines
772 B
C#

namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
/// <summary>
/// Parental Bond is an ability that allows the Pokémon to hit twice with most moves.
///
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Parental_Bond_(Ability)">Bulbapedia - Parental Bond</see>
/// </summary>
[Script(ScriptCategory.Ability, "parental_bond")]
public class ParentalBond : Script
{
/// <inheritdoc />
public override void ChangeNumberOfHits(IMoveChoice choice, ref byte numberOfHits)
{
if (numberOfHits == 1)
numberOfHits = 2;
}
/// <inheritdoc />
public override void ChangeBasePower(IExecutingMove move, IPokemon target, byte hit, ref ushort basePower)
{
if (hit == 1)
basePower = (ushort)(basePower / 4);
}
}