10 lines
293 B
ActionScript
10 lines
293 B
ActionScript
|
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);
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
}
|