2022-02-19 14:59:27 +00:00
|
|
|
namespace Gen7 {
|
|
|
|
[Ability effect=CheekPouch]
|
|
|
|
class CheekPouch : PkmnScript {
|
|
|
|
void OnAfterHeldItemConsume(Pokemon@ pokemon, const Item@ item) override {
|
2022-02-19 15:00:39 +00:00
|
|
|
if (item.Category == ItemCategory::Berry){
|
2022-02-19 14:59:27 +00:00
|
|
|
pokemon.Heal(pokemon.MaxHealth / 4);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|