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