namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
///
/// Sheer Force is an ability that increases the power of moves with secondary effects, but removes those effects.
///
/// Bulbapedia - Sheer Force
///
[Script(ScriptCategory.Ability, "sheer_force")]
public class SheerForce : Script, IScriptChangeBasePower, IScriptPreventSecondaryEffect
{
///
public void ChangeBasePower(IExecutingMove move, IPokemon target, byte hit, ref ushort basePower)
{
basePower = basePower.MultiplyOrMax(5325f / 4096f);
}
///
public void PreventSecondaryEffect(IExecutingMove move, IPokemon target, byte hit, ref bool prevent)
{
prevent = true;
}
}