Even more abilities
All checks were successful
Build / Build (push) Successful in 52s

This commit is contained in:
2025-06-14 11:30:56 +02:00
parent 24712fbb0d
commit 6c13d20bf7
13 changed files with 278 additions and 12 deletions

View File

@@ -8,5 +8,17 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
[Script(ScriptCategory.Ability, "parental_bond")]
public class ParentalBond : Script
{
// TODO: Implement Parental Bond effect.
/// <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);
}
}