More move scripts

This commit is contained in:
Deukhoofd committed 2025-05-03 17:52:50 +02:00
1 parent f8c43b6ba0
commit 1973ff50fa
52 files changed
+704 -78

No files matched your search

@@ -0,0 +1,16 @@
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;
}
}