2025-06-28 12:02:24 +02:00

14 lines
333 B
C#

namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
[Script(ScriptCategory.Move, "self_destruct")]
public class SelfDestruct : Script, IScriptOnAfterMove
{
/// <inheritdoc />
public void OnAfterMove(IExecutingMove move)
{
if (move.User.IsFainted)
return;
move.User.Faint(DamageSource.Misc);
}
}