From 6d36ccf2355b14b03e7b30248ed4b6a7690706e0 Mon Sep 17 00:00:00 2001 From: Scooom <97370685+Scoooom@users.noreply.github.com> Date: Mon, 6 Jan 2025 18:01:37 -0600 Subject: [PATCH] Update src/field/pokemon.ts Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> --- src/field/pokemon.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index e277078e423..e32f1c88175 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -1044,15 +1044,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { calculateBaseStats(): number[] { const baseStats = this.getSpeciesForm(true).baseStats.slice(0); - const origStats = this.getSpeciesForm(true).baseStats.slice(0); - if (this.scene.gameMode.isFlipStatChallenge()) { - baseStats[0] = origStats[5]; - baseStats[1] = origStats[4]; - baseStats[2] = origStats[3]; - baseStats[3] = origStats[2]; - baseStats[4] = origStats[1]; - baseStats[5] = origStats[0]; - } + applyChallenges(this.scene.gameMode, ChallengeType.FLIP_STAT, this, baseStats); // Shuckle Juice this.scene.applyModifiers(PokemonBaseStatTotalModifier, this.isPlayer(), this, baseStats); // Old Gateau