Make another pass through moves file
All checks were successful
Build / Build (push) Successful in 47s
All checks were successful
Build / Build (push) Successful in 47s
This commit is contained in:
16
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/Feint.cs
Normal file
16
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/Feint.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using PkmnLib.Plugin.Gen7.Scripts.Pokemon;
|
||||
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
||||
|
||||
[Script(ScriptCategory.Move, "feint")]
|
||||
public class Feint : Script
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnBeforeHit(IExecutingMove move, IPokemon target, byte hitIndex)
|
||||
{
|
||||
if (target.Volatile.Contains<ProtectionEffectScript>())
|
||||
{
|
||||
target.Volatile.Remove<ProtectionEffectScript>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user