This commit is contained in:
16
Plugins/PkmnLib.Plugin.Gen7/Scripts/Abilities/SereneGrace.cs
Normal file
16
Plugins/PkmnLib.Plugin.Gen7/Scripts/Abilities/SereneGrace.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
||||
|
||||
/// <summary>
|
||||
/// Serene Grace is an ability that doubles the chance of additional effects occurring when attacking.
|
||||
///
|
||||
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Serene_Grace_(Ability)">Bulbapedia - Serene Grace</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "serene_grace")]
|
||||
public class SereneGrace : Script
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void ChangeEffectChance(IExecutingMove move, IPokemon target, byte hit, ref float chance)
|
||||
{
|
||||
chance *= 2;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user