16 lines
420 B
C#
16 lines
420 B
C#
using PkmnLib.Static.Moves;
|
|
|
|
namespace PkmnLib.Plugin.Gen7.Scripts.Pokemon;
|
|
|
|
[Script(ScriptCategory.Pokemon, "shell_trap")]
|
|
public class ShellTrapHelper : Script
|
|
{
|
|
public bool HasHit { get; private set; }
|
|
|
|
/// <inheritdoc />
|
|
public override void OnIncomingHit(IExecutingMove move, IPokemon target, byte hit)
|
|
{
|
|
if (move.UseMove.Category == MoveCategory.Physical)
|
|
HasHit = true;
|
|
}
|
|
} |