More abilities
All checks were successful
Build / Build (push) Successful in 49s

This commit is contained in:
2025-06-01 11:23:01 +02:00
parent b090aa65f9
commit 232b94b04c
8 changed files with 114 additions and 17 deletions

View File

@@ -0,0 +1,15 @@
namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
[Script(ScriptCategory.Ability, "cheek_pouch")]
public class CheekPouch : Script
{
/// <inheritdoc />
public override void OnAfterItemConsume(IPokemon pokemon, IItem item)
{
if (item.Category == ItemCategory.Berry)
{
pokemon.BattleData?.Battle.EventHook.Invoke(new AbilityTriggerEvent(pokemon));
pokemon.Heal(pokemon.MaxHealth / 3);
}
}
}