namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
///
/// Compound Eyes is an ability that increases the accuracy of the Pokémon's moves by 30%.
/// This applies to all moves used by the Pokémon, making it particularly effective with low-accuracy moves.
///
/// Bulbapedia - Compound Eyes
///
[Script(ScriptCategory.Ability, "compound_eyes")]
public class CompoundEyes : Script
{
///
public override void ChangeAccuracy(IExecutingMove move, IPokemon target, byte hit, ref int modifiedAccuracy)
{
move.Battle.EventHook.Invoke(new AbilityTriggerEvent(move.User));
modifiedAccuracy = (int)(modifiedAccuracy * 1.3f);
}
}