First couple abilities implemented
All checks were successful
Build / Build (push) Successful in 48s
All checks were successful
Build / Build (push) Successful in 48s
This commit is contained in:
12
Plugins/PkmnLib.Plugin.Gen7/Scripts/Abilities/Bulletproof.cs
Normal file
12
Plugins/PkmnLib.Plugin.Gen7/Scripts/Abilities/Bulletproof.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
||||
|
||||
[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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user