Gen7Data/Scripts/Abilities/CheekPouch.as

10 lines
308 B
ActionScript
Raw Normal View History

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