16 lines
549 B
C#
16 lines
549 B
C#
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;
|
|
}
|
|
} |