[Bug] Fix Harvest not checking stack limits for berries (#1920)
This commit is contained in:
parent
83c11a0865
commit
eb058d7eb7
|
@ -2590,7 +2590,7 @@ export class PostTurnLootAbAttr extends PostTurnAbAttr {
|
|||
|
||||
if (!berryModifier) {
|
||||
pokemon.scene.addModifier(new BerryModifier(chosenBerry, pokemon.id, chosenBerryType, 1));
|
||||
} else {
|
||||
} else if (berryModifier.stackCount < berryModifier.getMaxHeldItemCount(pokemon)) {
|
||||
berryModifier.stackCount++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue