18 lines
577 B
C#
18 lines
577 B
C#
namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
|
|
|
/// <summary>
|
|
/// Pressure is an ability that makes the opponent use more PP when using moves against the Pokémon.
|
|
///
|
|
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Pressure_(Ability)">Bulbapedia - Pressure</see>
|
|
/// </summary>
|
|
[Script(ScriptCategory.Ability, "pressure")]
|
|
public class Pressure : Script
|
|
{
|
|
/// <inheritdoc />
|
|
public override void ModifyPPUsedForIncomingMove(IExecutingMove executingMove, ref byte ppUsed)
|
|
{
|
|
if (ppUsed == byte.MaxValue)
|
|
return;
|
|
ppUsed++;
|
|
}
|
|
} |