19 lines
492 B
C#
19 lines
492 B
C#
using PkmnLib.Static.Moves;
|
|
|
|
namespace PkmnLib.Plugin.Gen7.Scripts.Side;
|
|
|
|
public class MatBlockEffect : Script
|
|
{
|
|
/// <inheritdoc />
|
|
public override void BlockIncomingHit(IExecutingMove executingMove, IPokemon target, byte hitIndex, ref bool block)
|
|
{
|
|
if (executingMove.UseMove.Category != MoveCategory.Status)
|
|
block = true;
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override void OnEndTurn(IScriptSource owner, IBattle battle)
|
|
{
|
|
RemoveSelf();
|
|
}
|
|
} |