From ff256f78dd1ad0bdd3a771fa3490aedb0f41ecb0 Mon Sep 17 00:00:00 2001 From: ImperialSympathizer Date: Mon, 23 Sep 2024 19:29:32 -0400 Subject: [PATCH] can no longer go above max rev seed stacks --- .../encounters/absolute-avarice-encounter.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/data/mystery-encounters/encounters/absolute-avarice-encounter.ts b/src/data/mystery-encounters/encounters/absolute-avarice-encounter.ts index 93d47fb7e5b..7a3de0a5bbb 100644 --- a/src/data/mystery-encounters/encounters/absolute-avarice-encounter.ts +++ b/src/data/mystery-encounters/encounters/absolute-avarice-encounter.ts @@ -10,7 +10,7 @@ import { PersistentModifierRequirement } from "#app/data/mystery-encounters/myst import { queueEncounterMessage } from "#app/data/mystery-encounters/utils/encounter-dialogue-utils"; import { MysteryEncounterTier } from "#enums/mystery-encounter-tier"; import { MysteryEncounterOptionMode } from "#enums/mystery-encounter-option-mode"; -import { BerryModifier } from "#app/modifier/modifier"; +import { BerryModifier, PokemonInstantReviveModifier } from "#app/modifier/modifier"; import { getPokemonSpecies } from "#app/data/pokemon-species"; import { Moves } from "#enums/moves"; import { BattlerTagType } from "#enums/battler-tag-type"; @@ -268,7 +268,8 @@ export const AbsoluteAvariceEncounter: MysteryEncounter = const givePartyPokemonReviverSeeds = () => { const party = scene.getParty(); party.forEach(p => { - if (revSeed) { + const heldItems = p.getHeldItems(); + if (revSeed && !heldItems.some(item => item instanceof PokemonInstantReviveModifier)) { const seedModifier = revSeed.newModifier(p); if (seedModifier) { encounter.setDialogueToken("foodReward", seedModifier.type.name);