Gen7Data/Scripts/Abilities/CheekPouch.as

10 lines
308 B
ActionScript

namespace Gen7 {
[Ability effect=CheekPouch]
class CheekPouch : PkmnScript {
void OnAfterHeldItemConsume(Pokemon@ pokemon, const Item@ item) override {
if (item.Category == ItemCategory::Berry){
pokemon.Heal(pokemon.MaxHealth / 4);
}
};
}
}