Deukhoofd 1b9d137bb0
All checks were successful
Build / Build (push) Successful in 50s
Surprisingly, more abilities
2025-06-14 13:37:58 +02:00

18 lines
454 B
C#

namespace PkmnLib.Plugin.Gen7.Scripts.Side;
public class QuickGuardEffect : Script
{
/// <inheritdoc />
/// <inheritdoc />
public override void IsInvulnerableToMove(IExecutingMove move, IPokemon target, ref bool invulnerable)
{
if (move.UseMove.Priority > 0)
invulnerable = true;
}
/// <inheritdoc />
public override void OnEndTurn(IScriptSource owner, IBattle battle)
{
RemoveSelf();
}
}