From b06c1010207f656afd68df4c919814f61bf767b1 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Thu, 28 Mar 2024 11:15:28 -0400 Subject: [PATCH] Rare candies add 5 friendship --- src/modifier/modifier.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modifier/modifier.ts b/src/modifier/modifier.ts index 507b45196..5ea6587bc 100644 --- a/src/modifier/modifier.ts +++ b/src/modifier/modifier.ts @@ -1109,6 +1109,10 @@ export class PokemonLevelIncrementModifier extends ConsumablePokemonModifier { pokemon.levelExp = 0; } + const friendshipIncrease = new Utils.IntegerHolder(5); + pokemon.scene.applyModifier(PokemonFriendshipBoosterModifier, true, pokemon, friendshipIncrease); + pokemon.friendship = Math.min(pokemon.friendship + friendshipIncrease.value, 255); + pokemon.scene.unshiftPhase(new LevelUpPhase(pokemon.scene, pokemon.scene.getParty().indexOf(pokemon), pokemon.level - levelCount.value, pokemon.level)); return true;