Fixes cheek pouch, should just use category, not flags
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
06d1da3d3c
commit
b3e18ec66b
|
@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue