namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
///
/// Huge Power is an ability that doubles the Pokémon's Attack stat.
///
/// Bulbapedia - Huge Power
///
[Script(ScriptCategory.Ability, "huge_power")]
public class HugePower : Script
{
///
public override void ChangeOffensiveStatValue(IExecutingMove move, IPokemon target, byte hit, uint defensiveStat,
ImmutableStatisticSet targetStats, Statistic stat, ref uint value)
{
if (stat == Statistic.Attack)
{
value = value.MultiplyOrMax(2);
}
}
}