Implements cheek pouch
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
10
Scripts/Abilities/CheekPouch.as
Normal file
10
Scripts/Abilities/CheekPouch.as
Normal file
@@ -0,0 +1,10 @@
|
||||
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);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user