Skip to content

Commit

Permalink
Revert "[Bug] Enemy pokemon's Harvest creates berry icons on the play…
Browse files Browse the repository at this point in the history
…er's side when triggered (pagefaultgames#3077)"

This reverts commit e846498.
  • Loading branch information
Vassiat committed Jul 26, 2024
1 parent 7623358 commit 07eca49
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/data/ability.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3031,11 +3031,7 @@ export class PostTurnLootAbAttr extends PostTurnAbAttr {
) as BerryModifier | undefined;

if (!berryModifier) {
if (pokemon.isPlayer()) {
pokemon.scene.addModifier(new BerryModifier(chosenBerry, pokemon.id, chosenBerryType, 1));
} else {
pokemon.scene.addEnemyModifier(new BerryModifier(chosenBerry, pokemon.id, chosenBerryType, 1));
}
pokemon.scene.addModifier(new BerryModifier(chosenBerry, pokemon.id, chosenBerryType, 1));
} else if (berryModifier.stackCount < berryModifier.getMaxHeldItemCount(pokemon)) {
berryModifier.stackCount++;
}
Expand Down

0 comments on commit 07eca49

Please sign in to comment.