More move scripts
This commit is contained in:
14
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/SelfDestruct.cs
Normal file
14
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/SelfDestruct.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user