Deukhoofd cbd4340b13
All checks were successful
Build / Build (push) Successful in 47s
Make another pass through moves file
2025-05-18 14:15:37 +02:00

16 lines
431 B
C#

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>();
}
}
}