More abilities
Build / Build (push) Successful in 49s

This commit is contained in:
Deukhoofd committed 2025-06-01 11:23:46 +02:00
1 parent b090aa65f9
commit 232b94b04c
8 files changed
+114 -17

No files matched your search

@@ -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);
}
}
}