This commit is contained in:
18
Plugins/PkmnLib.Plugin.Gen7/Scripts/Abilities/Pressure.cs
Normal file
18
Plugins/PkmnLib.Plugin.Gen7/Scripts/Abilities/Pressure.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
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++;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user