Implements several more moves

This commit is contained in:
Deukhoofd committed 2025-01-10 13:45:29 +01:00
1 parent 0ad692a921
commit ecdc9c7654
12 files changed
+206 -16

No files matched your search

@@ -0,0 +1,20 @@
using System.Linq;
using PkmnLib.Dynamic.Models.Choices;
using PkmnLib.Dynamic.ScriptHandling;
using PkmnLib.Static;
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
public class Belch : Script
{
/// <inheritdoc />
public override void PreventMoveSelection(IMoveChoice choice, ref bool prevent)
{
var battleData = choice.User.BattleData;
if (battleData == null)
return;
if (battleData.ConsumedItems.All(x => x.Category != ItemCategory.Berry))
prevent = true;
}
}