From ea6d53605db4bb8274aef8888f8ddba03bde3ebb Mon Sep 17 00:00:00 2001 From: Scooom Date: Tue, 14 Jan 2025 22:07:40 -0600 Subject: [PATCH] Fix FlipStat applyChallenges inside calculateBaseStats --- src/field/pokemon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 4574c7cb6d3..432f0a92fec 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -1057,7 +1057,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { calculateBaseStats(): number[] { const baseStats = this.getSpeciesForm(true).baseStats.slice(0); - applyChallenges(this.scene.gameMode, ChallengeType.FLIP_STAT, this, baseStats); + applyChallenges(globalScene.gameMode, ChallengeType.FLIP_STAT, this, baseStats); // Shuckle Juice globalScene.applyModifiers(PokemonBaseStatTotalModifier, this.isPlayer(), this, baseStats); // Old Gateau