Merge branch 'flip_stats_challange' of github.com:Scoooom/pokerogue into flip_stats_challange

This commit is contained in:
Scooom 2025-01-06 18:08:04 -06:00
commit 6049cbd412

View File

@ -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