More abilities
All checks were successful
Build / Build (push) Successful in 50s

This commit is contained in:
2025-06-13 12:56:47 +02:00
parent 8363b955af
commit 4385f0afaa
10 changed files with 207 additions and 9 deletions

View File

@@ -0,0 +1,22 @@
using PkmnLib.Plugin.Gen7.Scripts.Pokemon;
namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
/// <summary>
/// Oblivious is an ability that prevents the Pokémon from being infatuated or taunted.
///
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Oblivious_(Ability)">Bulbapedia - Oblivious</see>
/// </summary>
[Script(ScriptCategory.Ability, "oblivious")]
public class Oblivious : Script
{
/// <inheritdoc />
public override void PreventVolatileAdd(Script script, ref bool preventVolatileAdd)
{
preventVolatileAdd = script switch
{
Infatuated or TauntEffect => true,
_ => preventVolatileAdd,
};
}
}