This commit is contained in:
16
Plugins/PkmnLib.Plugin.Gen7/Scripts/Abilities/ShellArmor.cs
Normal file
16
Plugins/PkmnLib.Plugin.Gen7/Scripts/Abilities/ShellArmor.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
||||
|
||||
/// <summary>
|
||||
/// Shell Armor is an ability that prevents the Pokémon from receiving critical hits.
|
||||
///
|
||||
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Shell_Armor_(Ability)">Bulbapedia - Shell Armor</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "shell_armor")]
|
||||
public class ShellArmor : Script
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void BlockIncomingCriticalHit(IExecutingMove move, IPokemon target, byte hit, ref bool block)
|
||||
{
|
||||
block = true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user