Implements a bunch more moves
This commit is contained in:
16
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/Incinerate.cs
Normal file
16
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/Incinerate.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using PkmnLib.Static;
|
||||
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
||||
|
||||
[Script(ScriptCategory.Move, "incinerate")]
|
||||
public class Incinerate : Script
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
{
|
||||
if (target.HeldItem is { Category: ItemCategory.Berry })
|
||||
{
|
||||
target.RemoveHeldItemForBattle();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user