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