This commit is contained in:
17
Plugins/PkmnLib.Plugin.Gen7/Scripts/Abilities/OwnTempo.cs
Normal file
17
Plugins/PkmnLib.Plugin.Gen7/Scripts/Abilities/OwnTempo.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
||||
|
||||
/// <summary>
|
||||
/// Own Tempo is an ability that prevents the Pokémon from becoming confused.
|
||||
///
|
||||
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Own_Tempo_(Ability)">Bulbapedia - Own Tempo</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "own_tempo")]
|
||||
public class OwnTempo : Script
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void PreventVolatileAdd(Script script, ref bool preventVolatileAdd)
|
||||
{
|
||||
if (script is Pokemon.Confusion)
|
||||
preventVolatileAdd = true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user