24 lines
782 B
C#
24 lines
782 B
C#
namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
|
|
|
/// <summary>
|
|
/// No Guard is an ability that ensures all moves used by and against the Pokémon hit without fail.
|
|
///
|
|
/// <see href="https://bulbapedia.bulbagarden.net/wiki/No_Guard_(Ability)">Bulbapedia - No Guard</see>
|
|
/// </summary>
|
|
[Script(ScriptCategory.Ability, "no_guard")]
|
|
public class NoGuard : Script
|
|
{
|
|
/// <inheritdoc />
|
|
public override void ChangeIncomingAccuracy(IExecutingMove executingMove, IPokemon target, byte hitIndex,
|
|
ref int modifiedAccuracy)
|
|
{
|
|
modifiedAccuracy = 2000;
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override void ChangeAccuracy(IExecutingMove executingMove, IPokemon target, byte hitIndex,
|
|
ref int modifiedAccuracy)
|
|
{
|
|
modifiedAccuracy = 2000;
|
|
}
|
|
} |