Gen7Data/Scripts/Abilities/CheekPouch.as

10 lines
293 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.HasFlag("berry")){
pokemon.Heal(pokemon.MaxHealth / 4);
}
};
}
}