Fixes cheek pouch, should just use category, not flags
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2022-02-19 16:00:39 +01:00
parent 06d1da3d3c
commit b3e18ec66b
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 1 additions and 1 deletions

View File

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