This commit is contained in:
13
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/Superpower.cs
Normal file
13
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/Superpower.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
||||
|
||||
[Script(ScriptCategory.Move, "superpower")]
|
||||
public class Superpower : Script
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
{
|
||||
EventBatchId eventBatch = new();
|
||||
move.User.ChangeStatBoost(Statistic.Attack, -1, true, eventBatch);
|
||||
move.User.ChangeStatBoost(Statistic.Defense, -1, true, eventBatch);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user