This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user