mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-16 21:32:18 +02:00
readd removing berry from memory after harvest
This commit is contained in:
parent
935939b0f0
commit
e755b4c30b
@ -2216,6 +2216,7 @@ export class PostTurnLootAbAttr extends PostTurnAbAttr {
|
||||
|
||||
const randomIdx = Utils.randSeedInt(berriesEaten.length);
|
||||
const chosenBerry = new BerryModifierType(berriesEaten[randomIdx]);
|
||||
berriesEaten.splice(randomIdx) // Remove berry from memory
|
||||
|
||||
const berryModifier = pokemon.scene.findModifier(
|
||||
(m) => m instanceof BerryModifier && m.berryType === berriesEaten[randomIdx],
|
||||
|
Loading…
Reference in New Issue
Block a user