mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-31 05:07:11 +00:00
[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…
x
Reference in New Issue
Block a user