Deukhoofd 273d26057a
All checks were successful
Build / Build (push) Successful in 50s
Adds doccomments to all abilities
2025-06-07 11:20:35 +02:00

18 lines
683 B
C#

namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
/// <summary>
/// Bulletproof is an ability that grants immunity to ball and bomb moves.
/// The Pokémon is unaffected by all damage and effects from moves flagged as ballistics, such as Shadow Ball and Sludge Bomb.
///
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Bulletproof_(Ability)">Bulbapedia - Bulletproof</see>
/// </summary>
[Script(ScriptCategory.Ability, "bulletproof")]
public class Bulletproof : Script
{
/// <inheritdoc />
public override void FailIncomingMove(IExecutingMove move, IPokemon target, ref bool fail)
{
if (move.UseMove.HasFlag("ballistics"))
fail = true;
}
}