namespace PkmnLib.Plugin.Gen7.Scripts.Abilities; /// /// Overgrow is an ability that boosts the power of Grass-type moves when the Pokémon's HP is low. /// /// Bulbapedia - Overgrow /// [Script(ScriptCategory.Ability, "overgrow")] public class Overgrow : Script { /// public override void ChangeBasePower(IExecutingMove move, IPokemon target, byte hit, ref ushort basePower) { if (move.GetHitData(target, hit).Type?.Name == "grass" && target.CurrentHealth <= target.BoostedStats.Hp / 3) basePower = basePower.MultiplyOrMax(1.5f); } }