Even more moves
This commit is contained in:
18
Plugins/PkmnLib.Plugin.Gen7/Scripts/Side/QuickGuardEffect.cs
Normal file
18
Plugins/PkmnLib.Plugin.Gen7/Scripts/Side/QuickGuardEffect.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
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(IBattle battle)
|
||||
{
|
||||
RemoveSelf();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user